Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2006-11-12 19:21:16 +0300
committerAndrea Weikert <elubie@gmx.net>2006-11-12 19:21:16 +0300
commit7abf00bbce4960dfa14e2ad922e9c0f7cc6c6778 (patch)
tree785d4a907abf93726cd2b32db13c0b9488064d9f /intern
parentc6f9720eb685c9fff312304e7d4b54891ba33db6 (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/SConscript2
-rw-r--r--intern/ghost/make/msvc_7_0/ghost.vcproj2
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"