From 2a63c4ab7b55cd4eb4301b54e5ca934c71a5e3b4 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Thu, 24 Sep 2009 19:50:15 +0000 Subject: [PATCH] * fix snprintf error with mingw * move header guards to the right place. --- source/blender/blenlib/BLI_winstuff.h | 8 ++++---- 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 #include "BLI_winstuff.h" #endif