about summary refs log tree commit diff
path: root/src/engine/client/ec_gfx.c
diff options
context:
space:
mode:
authorJohan Althoff <teetow@gmail.com>2008-10-21 16:19:02 +0000
committerJohan Althoff <teetow@gmail.com>2008-10-21 16:19:02 +0000
commit7a32d03b8ab07653baf5a2d786046561b535a3ed (patch)
tree5e9ca8333f439e92cfe4a10b70e0e389a000011a /src/engine/client/ec_gfx.c
parent21445b67bba1c514c2246947b6732d67b0ccd566 (diff)
downloadzcatch-7a32d03b8ab07653baf5a2d786046561b535a3ed.tar.gz
zcatch-7a32d03b8ab07653baf5a2d786046561b535a3ed.zip
fixed sdl for windows
Diffstat (limited to 'src/engine/client/ec_gfx.c')
-rw-r--r--src/engine/client/ec_gfx.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/engine/client/ec_gfx.c b/src/engine/client/ec_gfx.c
index bb5c7e91..09d8d57b 100644
--- a/src/engine/client/ec_gfx.c
+++ b/src/engine/client/ec_gfx.c
@@ -6,20 +6,25 @@
 	#include <GL/glfw.h>
 #else
 	#include "SDL.h"
-
-#ifdef CONF_PLATFORM_MACOSX
-	#include <OpenGL/gl.h>
-	#include <OpenGL/glu.h>
-#else
-	#include <GL/gl.h>
-	#include <GL/glu.h>
-#endif
+	
+	#ifdef CONF_FAMILY_WINDOWS
+		#define WIN32_LEAN_AND_MEAN
+		#include <windows.h>
+	#endif
+	
+	#ifdef CONF_PLATFORM_MACOSX
+		#include <OpenGL/gl.h>
+		#include <OpenGL/glu.h>
+	#else
+		#include <GL/gl.h>
+		#include <GL/glu.h>
+	#endif
 
 #endif
 
+#include <base/system.h>
 #include <engine/external/pnglite/pnglite.h>
 
-#include <base/system.h>
 #include <engine/e_client_interface.h>
 #include <engine/e_engine.h>
 #include <engine/e_config.h>