From ad0975f7011222f8da4fda5cc4a6d45468445ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 26 Oct 2009 15:11:11 +0000 Subject: scons: Define _USE_MATH_DEFINES on MSVC. --- scons/gallium.py | 1 + scons/generic.py | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'scons') diff --git a/scons/gallium.py b/scons/gallium.py index 34877b2f8b..a6d69fd16d 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -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', 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'] -- cgit v1.2.3