compile fixes for MSVC!
authorAndrea Weikert <elubie@gmx.net>
Tue, 16 Feb 2010 18:12:44 +0000 (18:12 +0000)
committerAndrea Weikert <elubie@gmx.net>
Tue, 16 Feb 2010 18:12:44 +0000 (18:12 +0000)
* function must return value!
* missing _USE_MATH_DEFINES for M_PI

intern/ghost/intern/GHOST_SystemWin32.cpp
source/blender/blenkernel/intern/unit.c

index 61838dc471f9b77a970d21cc82fb7f5fd2937378..0cbd3e99c73c8b2a36e373659d13fbe572340019 100644 (file)
@@ -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;
 }
index 9d18c35984b80e669441a7359ec094ff1a4308c5..22dc5a15650642b96500e4dbb94ffc17ae9f7a40 100644 (file)
@@ -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"