diff options
author | Vinson Lee <[email protected]> | 2009-12-21 17:25:03 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-12-21 17:25:03 -0800 |
commit | 2b7b2b90e3fb52306c10f62e2a56f5199028d862 (patch) | |
tree | ad8cb019f065badfc452d56ca5945265d67595d5 /scons | |
parent | e46ad402f1fecf0fc8d2538eb5abbdde97484799 (diff) |
scons: Define _USE_MATH_DEFINES on MSVC.
Diffstat (limited to 'scons')
-rw-r--r-- | scons/gallium.py | 1 | ||||
-rw-r--r-- | scons/generic.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index bf6172b4d77..9adba0a0a1d 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 a9c2244a74f..2a085ddece4 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: |