diff options
author | Andrea Weikert <elubie@gmx.net> | 2006-11-12 19:21:16 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2006-11-12 19:21:16 +0300 |
commit | 7abf00bbce4960dfa14e2ad922e9c0f7cc6c6778 (patch) | |
tree | 785d4a907abf93726cd2b32db13c0b9488064d9f /intern | |
parent | c6f9720eb685c9fff312304e7d4b54891ba33db6 (diff) |
compile fix for MSVC compiler.
- math.h doesn't include #define M_PI by default (_USE_MATH_DEFINES needs to be defined)
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/SConscript | 2 | ||||
-rw-r--r-- | intern/ghost/make/msvc_7_0/ghost.vcproj | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/ghost/SConscript b/intern/ghost/SConscript index ade73cf71ce..f1393472a01 100644 --- a/intern/ghost/SConscript +++ b/intern/ghost/SConscript @@ -29,4 +29,4 @@ else: incs = '. ../string ' + env['BF_OPENGL_INC'] if window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross'): incs = '#../lib/windows/wintab/INCLUDE ' + incs -env.BlenderLib ('bf_ghost', sources, Split(incs), [], libtype=['core','player'], priority = [25,15] ) +env.BlenderLib ('bf_ghost', sources, Split(incs), defines=['_USE_MATH_DEFINES'], libtype=['core','player'], priority = [25,15] ) diff --git a/intern/ghost/make/msvc_7_0/ghost.vcproj b/intern/ghost/make/msvc_7_0/ghost.vcproj index c1e85b05860..04a526d93ce 100644 --- a/intern/ghost/make/msvc_7_0/ghost.vcproj +++ b/intern/ghost/make/msvc_7_0/ghost.vcproj @@ -79,7 +79,7 @@ ECHO Done Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..;..\..\..\..\..\build\msvc_7\intern\string\include;..\..\..\..\..\lib\windows\wintab\INCLUDE" - PreprocessorDefinitions="WIN32,_DEBUG,_LIB" + PreprocessorDefinitions="WIN32,_DEBUG,_LIB,_USE_MATH_DEFINES" BasicRuntimeChecks="3" RuntimeLibrary="1" UsePrecompiledHeader="2" |