* fix snprintf error with mingw
authorNathan Letwory <nathan@letworyinteractive.com>
Thu, 24 Sep 2009 19:50:15 +0000 (19:50 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Thu, 24 Sep 2009 19:50:15 +0000 (19:50 +0000)
* move header guards to the right place.

source/blender/blenlib/BLI_winstuff.h
source/gameengine/BlenderRoutines/KX_BlenderGL.cpp

index bbdbc2def8d86d6785fbd76db749f025c2cd5ed2..757b3605203bcec541db967075d52d2b4cc0d16a 100644 (file)
@@ -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
 
 #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" {
index dba6d1113c98fb86a8bbf07c087c07d965fedc83..bb02f3b372eae303d4ccce13e6f0d6ba61ea78f5 100644 (file)
@@ -44,6 +44,7 @@ extern "C" {
  * This little block needed for linking to Blender... 
  */
 #ifdef WIN32
+#include <vector>
 #include "BLI_winstuff.h"
 #endif