summaryrefslogtreecommitdiff
path: root/scons/generic.py
diff options
context:
space:
mode:
Diffstat (limited to 'scons/generic.py')
-rw-r--r--scons/generic.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scons/generic.py b/scons/generic.py
index 764b626e58..03563e4c62 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -331,9 +331,12 @@ def generate(env):
#'UNICODE',
# http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx,
#'WIN32_LEAN_AND_MEAN',
- 'VC_EXTRALEAN',
- '_CRT_SECURE_NO_DEPRECATE',
]
+ if msvc:
+ cppdefines += [
+ 'VC_EXTRALEAN',
+ '_CRT_SECURE_NO_DEPRECATE',
+ ]
if debug:
cppdefines += ['_DEBUG']
if platform == 'winddk':