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':
|
if msvc and env['toolchain'] != 'winddk':
|
||||||
cppdefines += [
|
cppdefines += [
|
||||||
'VC_EXTRALEAN',
|
'VC_EXTRALEAN',
|
||||||
|
'_USE_MATH_DEFINES',
|
||||||
'_CRT_SECURE_NO_DEPRECATE',
|
'_CRT_SECURE_NO_DEPRECATE',
|
||||||
]
|
]
|
||||||
if debug:
|
if debug:
|
||||||
|
@@ -335,6 +335,7 @@ def generate(env):
|
|||||||
if msvc:
|
if msvc:
|
||||||
cppdefines += [
|
cppdefines += [
|
||||||
'VC_EXTRALEAN',
|
'VC_EXTRALEAN',
|
||||||
|
'_USE_MATH_DEFINES',
|
||||||
'_CRT_SECURE_NO_DEPRECATE',
|
'_CRT_SECURE_NO_DEPRECATE',
|
||||||
]
|
]
|
||||||
if debug:
|
if debug:
|
||||||
|
Reference in New Issue
Block a user