summaryrefslogtreecommitdiff
path: root/scons/generic.py
diff options
context:
space:
mode:
Diffstat (limited to 'scons/generic.py')
-rw-r--r--scons/generic.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scons/generic.py b/scons/generic.py
index a9c2244a74..a3b73b09b9 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -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']