scons: Define _USE_MATH_DEFINES on MSVC.

This commit is contained in:
José Fonseca 2009-10-26 15:11:11 +00:00
parent 87127c83dc
commit ad0975f701
2 changed files with 5 additions and 0 deletions

View file

@ -263,6 +263,7 @@ def generate(env):
if msvc and env['toolchain'] != 'winddk':
cppdefines += [
'VC_EXTRALEAN',
'_USE_MATH_DEFINES',
'_CRT_SECURE_NO_WARNINGS',
'_CRT_SECURE_NO_DEPRECATE',
'_SCL_SECURE_NO_WARNINGS',

View file

@ -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']