win32: include windows.h before GL/glew.h

The GL/glu.h from mingw64 needs the WINAPI macro and is included by glew.h.
Günther Brammer 2011-03-14 16:19:29 +01:00
parent 35745ed2a3
commit 492ae967fc
2 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,9 @@
#if !defined(INC_StdGL) && defined(USE_GL)
#define INC_StdGL
#ifdef _WIN32
#include <C4windowswrapper.h>
#endif
#include <GL/glew.h>
#if defined(__APPLE__)

View File

@ -26,8 +26,10 @@
#include <StdColors.h>
#include <C4Rect.h>
#ifdef USE_DIRECTX
#ifdef _WIN32
#include <C4windowswrapper.h>
#endif
#ifdef USE_DIRECTX
#include <d3d9.h>
#undef DrawText
#else