scons: Define _USE_MATH_DEFINES on MSVC.
This commit is contained in:
@@ -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',
|
||||
|
@@ -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']
|
||||
|
Reference in New Issue
Block a user