aboutsummaryrefslogtreecommitdiffhomepage
path: root/waftools/detections
diff options
context:
space:
mode:
authorGravatar James Ross-Gowan <rossymiles@gmail.com>2015-01-16 16:20:42 +1100
committerGravatar James Ross-Gowan <rossymiles@gmail.com>2015-01-16 21:34:46 +1100
commite93c62520ec86b8d99c9fd61885ca5c98887e909 (patch)
tree062a7f572746d3039e69c4f31be7805b633887f9 /waftools/detections
parent1558938f87befae9702c33109b21d87869ebc9ef (diff)
win32: make sure __STRICT_ANSI__ is not defined
__STRICT_ANSI__ disables functions and definitions that aren't in ANSI C. Unfortunately this includes j1(), which is used by the new ewa_lanczos code. Cygwin's CFLAGS already unset __STRICT_ANSI__, but it should be unset for both Cygwin and MinGW.
Diffstat (limited to 'waftools/detections')
-rw-r--r--waftools/detections/compiler.py4
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__,