compile fix for MSVC compiler.
authorAndrea Weikert <elubie@gmx.net>
Sun, 12 Nov 2006 16:21:16 +0000 (16:21 +0000)
committerAndrea Weikert <elubie@gmx.net>
Sun, 12 Nov 2006 16:21:16 +0000 (16:21 +0000)
- math.h doesn't include #define M_PI by default (_USE_MATH_DEFINES needs to be defined)

intern/ghost/SConscript
intern/ghost/make/msvc_7_0/ghost.vcproj

index ade73cf71ced6402a95f75e974132a04b1877d23..f1393472a0172c1fbbde030656dbbc5c93dae6aa 100644 (file)
@@ -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] ) 
index c1e85b05860c989728131b85aba9d42a4c35424d..04a526d93ce5eff7e132ae170bbf73aad235b0d5 100644 (file)
@@ -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"