File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ add_executable(generate_fixtures generate_fixtures.c)
1010target_link_libraries (generate_fixtures PRIVATE triepack_core )
1111
1212add_executable (trp trp_inspect.c )
13- target_link_libraries (trp PRIVATE triepack_core triepack_json )
13+ target_link_libraries (trp PRIVATE triepack_json )
1414install (TARGETS trp DESTINATION ${CMAKE_INSTALL_BINDIR} )
1515
1616# Custom target to generate test fixtures
Original file line number Diff line number Diff line change 2020 * BSD-2-Clause -- see LICENSE.txt
2121 */
2222
23+ /* Expose POSIX isatty/fileno under strict C99 (must precede all includes) */
24+ #ifndef _WIN32
25+ #define _POSIX_C_SOURCE 200809L
26+ #include <unistd.h>
27+ #endif
28+
2329#include "triepack/triepack.h"
2430#include "triepack/triepack_json.h"
2531
3238#include <io.h>
3339#define isatty _isatty
3440#define fileno _fileno
35- #else
36- #include <unistd.h>
3741#endif
3842
3943/* ── ANSI colour helpers ─────────────────────────────────────────────── */
You can’t perform that action at this time.
0 commit comments