From 7e5d27502c8c65fa43aa4a04ea17d3968f5966d2 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Tue, 16 Feb 2010 18:12:44 +0000 Subject: [PATCH] compile fixes for MSVC! * function must return value! * missing _USE_MATH_DEFINES for M_PI --- intern/ghost/intern/GHOST_SystemWin32.cpp | 4 ++-- source/blender/blenkernel/intern/unit.c | 3 +++ 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 #include #include +#ifdef WIN32 +#define _USE_MATH_DEFINES +#endif #include #include "BLI_winstuff.h"