scons: Define _USE_MATH_DEFINES on MSVC.
authorVinson Lee <vlee@vmware.com>
Tue, 22 Dec 2009 01:25:03 +0000 (17:25 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 22 Dec 2009 01:25:03 +0000 (17:25 -0800)
scons/gallium.py
scons/generic.py

index bf6172b4d777d226a0c2f10385b79ea0fc531914..9adba0a0a1d9c9508227ff672af3e5ccdd69386c 100644 (file)
@@ -263,6 +263,7 @@ def generate(env):
         if msvc and env['toolchain'] != 'winddk':
             cppdefines += [
                 'VC_EXTRALEAN',
+                '_USE_MATH_DEFINES',
                 '_CRT_SECURE_NO_DEPRECATE',
             ]
         if debug:
index a9c2244a74fa1ab63529648b1db5cedbac023f7e..2a085ddece48a90d6e94c7a8fc20387f8f76798d 100644 (file)
@@ -335,6 +335,7 @@ def generate(env):
         if msvc:
             cppdefines += [
                 'VC_EXTRALEAN',
+                '_USE_MATH_DEFINES',
                 '_CRT_SECURE_NO_DEPRECATE',
             ]
         if debug: