compile fixes for MSVC!

* function must return value!
* missing _USE_MATH_DEFINES for M_PI
This commit is contained in:
Andrea Weikert
2010-02-16 18:12:44 +00:00
parent 4405b01586
commit 7e5d27502c
2 changed files with 5 additions and 2 deletions

View 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;
}

View 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"