scons: Define _USE_MATH_DEFINES on MSVC.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 26 Oct 2009 15:11:11 +0000 (15:11 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 26 Oct 2009 15:17:26 +0000 (15:17 +0000)
scons/gallium.py
scons/generic.py

index 34877b2f8b327b234b627a86f2650efef615e9f7..a6d69fd16d5342cee065173a25975c2b9c8f7dd0 100644 (file)
@@ -263,6 +263,7 @@ def generate(env):
         if msvc and env['toolchain'] != 'winddk':
             cppdefines += [
                 'VC_EXTRALEAN',
+                '_USE_MATH_DEFINES',
                 '_CRT_SECURE_NO_WARNINGS',
                 '_CRT_SECURE_NO_DEPRECATE',
                 '_SCL_SECURE_NO_WARNINGS',
index a9c2244a74fa1ab63529648b1db5cedbac023f7e..a3b73b09b9e3ed0edfdb59a7c79369f2407c95d6 100644 (file)
@@ -335,7 +335,11 @@ def generate(env):
         if msvc:
             cppdefines += [
                 'VC_EXTRALEAN',
+                '_USE_MATH_DEFINES',
+                '_CRT_SECURE_NO_WARNINGS',
                 '_CRT_SECURE_NO_DEPRECATE',
+                '_SCL_SECURE_NO_WARNINGS',
+                '_SCL_SECURE_NO_DEPRECATE',
             ]
         if debug:
             cppdefines += ['_DEBUG']