diff --git a/tool b/tool index a23dc8b..384bcbd 100755 --- a/tool +++ b/tool @@ -228,6 +228,11 @@ build_target() { orca|tui) add source_files tui_main.c add cc_flags -D_XOPEN_SOURCE_EXTENDED=1 + # thirdparty headers (like sokol_time.h) should get -isystem for their + # include dir so that any warnings they generate with our warning flags + # are ignored. (sokol_time.h may generate sign conversion warning on + # mac.) + add cc_flags -isystem thirdparty # if we ever need newer posix stuff # add cc_flags -D_POSIX_C_SOURCE=200809L out_exe=orca diff --git a/tui_main.c b/tui_main.c index 0bbd453..e9e759f 100644 --- a/tui_main.c +++ b/tui_main.c @@ -9,7 +9,7 @@ #include #define SOKOL_IMPL -#include "thirdparty/sokol_time.h" +#include "sokol_time.h" #undef SOKOL_IMPL #define AND_CTRL(c) ((c)&037)