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
diff options
context:
space:
mode:
authorAndrea Weikert <elubie@gmx.net>2010-02-16 21:12:44 +0300
committerAndrea Weikert <elubie@gmx.net>2010-02-16 21:12:44 +0300
commit7e5d27502c8c65fa43aa4a04ea17d3968f5966d2 (patch)
tree22a9df05fddd75eba14471729996ad27ea1ba815
parent4405b01586728c017a538eb00843554a556d402a (diff)
compile fixes for MSVC!
* function must return value! * missing _USE_MATH_DEFINES for M_PI
-rw-r--r--intern/ghost/intern/GHOST_SystemWin32.cpp4
-rw-r--r--source/blender/blenkernel/intern/unit.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index 61838dc471f..0cbd3e99c73 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1097,10 +1097,10 @@ void GHOST_SystemWin32::putClipboard(GHOST_TInt8 *buffer, bool selection) const
GHOST_TUns8* GHOST_SystemWin32::getSystemDir() const
{
-
+ return NULL;
}
GHOST_TUns8* GHOST_SystemWin32::getUserDir() const
{
-
+ return NULL;
}
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c
index 9d18c35984b..22dc5a15650 100644
--- a/source/blender/blenkernel/intern/unit.c
+++ b/source/blender/blenkernel/intern/unit.c
@@ -24,6 +24,9 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
+#ifdef WIN32
+#define _USE_MATH_DEFINES
+#endif
#include <math.h>
#include "BLI_winstuff.h"