summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scons/gallium.py1
-rw-r--r--scons/generic.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index bf6172b4d7..9adba0a0a1 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 a9c2244a74..2a085ddece 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: