[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23459] trunk/blender/source: * fix snprintf error with mingw
Nathan Letwory
jesterking at letwory.net
Thu Sep 24 21:50:15 CEST 2009
Revision: 23459
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23459
Author: jesterking
Date: 2009-09-24 21:50:15 +0200 (Thu, 24 Sep 2009)
Log Message:
-----------
* fix snprintf error with mingw
* move header guards to the right place.
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/BLI_winstuff.h
trunk/blender/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
Modified: trunk/blender/source/blender/blenlib/BLI_winstuff.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_winstuff.h 2009-09-24 16:18:17 UTC (rev 23458)
+++ trunk/blender/source/blender/blenlib/BLI_winstuff.h 2009-09-24 19:50:15 UTC (rev 23459)
@@ -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,11 +62,8 @@
#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" {
#endif
Modified: trunk/blender/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp
===================================================================
--- trunk/blender/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp 2009-09-24 16:18:17 UTC (rev 23458)
+++ trunk/blender/source/gameengine/BlenderRoutines/KX_BlenderGL.cpp 2009-09-24 19:50:15 UTC (rev 23459)
@@ -44,6 +44,7 @@
* This little block needed for linking to Blender...
*/
#ifdef WIN32
+#include <vector>
#include "BLI_winstuff.h"
#endif
More information about the Bf-blender-cvs
mailing list