Browse Source

Change sokol_time.h to get -isystem for include

Generates Wconversion warning on mac, otherwise.
master
cancel 6 years ago
parent
commit
5b66f2cf8d
  1. 5
      tool
  2. 2
      tui_main.c

5
tool

@ -228,6 +228,11 @@ build_target() {
orca|tui) orca|tui)
add source_files tui_main.c add source_files tui_main.c
add cc_flags -D_XOPEN_SOURCE_EXTENDED=1 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 # if we ever need newer posix stuff
# add cc_flags -D_POSIX_C_SOURCE=200809L # add cc_flags -D_POSIX_C_SOURCE=200809L
out_exe=orca out_exe=orca

2
tui_main.c

@ -9,7 +9,7 @@
#include <ncurses.h> #include <ncurses.h>
#define SOKOL_IMPL #define SOKOL_IMPL
#include "thirdparty/sokol_time.h" #include "sokol_time.h"
#undef SOKOL_IMPL #undef SOKOL_IMPL
#define AND_CTRL(c) ((c)&037) #define AND_CTRL(c) ((c)&037)

Loading…
Cancel
Save