Mesa (mesa_7_6_branch): scons: Define _USE_MATH_DEFINES on MSVC.

Vinson Lee vlee at kemper.freedesktop.org
Mon Dec 21 17:25:58 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 2b7b2b90e3fb52306c10f62e2a56f5199028d862
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b7b2b90e3fb52306c10f62e2a56f5199028d862

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Dec 21 17:25:03 2009 -0800

scons: Define _USE_MATH_DEFINES on MSVC.

---

 scons/gallium.py |    1 +
 scons/generic.py |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index bf6172b..9adba0a 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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:
diff --git a/scons/generic.py b/scons/generic.py
index a9c2244..2a085dd 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -335,6 +335,7 @@ def generate(env):
         if msvc:
             cppdefines += [
                 'VC_EXTRALEAN',
+                '_USE_MATH_DEFINES',
                 '_CRT_SECURE_NO_DEPRECATE',
             ]
         if debug:



More information about the mesa-commit mailing list