diff options
Diffstat (limited to 'waftools')
-rw-r--r-- | waftools/detections/compiler.py | 5 | ||||
-rw-r--r-- | waftools/fragments/wasapi.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 2c22f26a1a..97520ba76e 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -45,11 +45,16 @@ def __add_clang_flags__(ctx): "-Wno-tautological-compare", "-Wno-tautological-constant-out-of-range-compare" ] +def __add_mswin_flags__(ctx): + ctx.env.CFLAGS += ['-D_WIN32_WINNT=0x600', '-DUNICODE', '-DCOBJMACROS'] + def __add_mingw_flags__(ctx): + __add_mswin_flags__(ctx) ctx.env.CFLAGS += ['-D__USE_MINGW_ANSI_STDIO=1'] ctx.env.LAST_LINKFLAGS += ['-mwindows'] def __add_cygwin_flags__(ctx): + __add_mswin_flags__(ctx) ctx.env.CFLAGS += ['-mwin32'] ctx.env.CFLAGS += ['-U__STRICT_ANSI__'] diff --git a/waftools/fragments/wasapi.c b/waftools/fragments/wasapi.c index ef3b3f7866..5528ce171b 100644 --- a/waftools/fragments/wasapi.c +++ b/waftools/fragments/wasapi.c @@ -1,5 +1,3 @@ -#define COBJMACROS 1 -#define _WIN32_WINNT 0x600 #include <malloc.h> #include <stdlib.h> #include <process.h> |