diff options
Diffstat (limited to 'waftools/detections/compiler.py')
-rw-r--r-- | waftools/detections/compiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index a43a713de1..7c25c3dadc 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -48,7 +48,8 @@ def __add_clang_flags__(ctx): "-Wno-tautological-constant-out-of-range-compare" ] def __add_mswin_flags__(ctx): - ctx.env.CFLAGS += ['-D_WIN32_WINNT=0x600', '-DUNICODE', '-DCOBJMACROS'] + ctx.env.CFLAGS += ['-D_WIN32_WINNT=0x600', '-DUNICODE', '-DCOBJMACROS', + '-U__STRICT_ANSI__'] def __add_mingw_flags__(ctx): __add_mswin_flags__(ctx) @@ -58,7 +59,6 @@ def __add_mingw_flags__(ctx): def __add_cygwin_flags__(ctx): __add_mswin_flags__(ctx) ctx.env.CFLAGS += ['-mwin32'] - ctx.env.CFLAGS += ['-U__STRICT_ANSI__'] __compiler_map__ = { '__GNUC__': __add_gcc_flags__, |