forked from Mirrors/openclonk
win32: include windows.h before GL/glew.h
The GL/glu.h from mingw64 needs the WINAPI macro and is included by glew.h.
parent
35745ed2a3
commit
492ae967fc
|
@ -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__)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue