diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2009-09-24 23:50:15 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2009-09-24 23:50:15 +0400 |
commit | 2a63c4ab7b55cd4eb4301b54e5ca934c71a5e3b4 (patch) | |
tree | 7c13d718de6d39febb378c53503bfe70ae5ac84e | |
parent | 22d027dcb2f46fc7db359834b8f58c4120bf2c78 (diff) |
* fix snprintf error with mingw
* move header guards to the right place.
-rw-r--r-- | source/blender/blenlib/BLI_winstuff.h | 8 | ||||
-rw-r--r-- | source/gameengine/BlenderRoutines/KX_BlenderGL.cpp | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h index bbdbc2def8d..757b3605203 100644 --- a/source/blender/blenlib/BLI_winstuff.h +++ b/source/blender/blenlib/BLI_winstuff.h @@ -29,6 +29,9 @@ * ***** END GPL LICENSE BLOCK ***** */ +#ifndef __WINSTUFF_H__ +#define __WINSTUFF_H__ + #ifndef FREE_WINDOWS #pragma warning(once: 4761 4305 4244 4018) #endif @@ -59,10 +62,7 @@ #undef small -#ifndef __WINSTUFF_H__ -#define __WINSTUFF_H__ - - // These definitions are also in arithb for simplicity +// These definitions are also in arithb for simplicity #ifdef __cplusplus extern "C" { diff --git a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp index dba6d1113c9..bb02f3b372e 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp @@ -44,6 +44,7 @@ extern "C" { * This little block needed for linking to Blender... */ #ifdef WIN32 +#include <vector> #include "BLI_winstuff.h" #endif |