aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
diff options
context:
space:
mode:
authorAlejandro Marzini2010-07-15 04:05:20 +0000
committerAlejandro Marzini2010-07-15 04:05:20 +0000
commit36583ff888c745b2b39e8fcd51e9a4b74da33c49 (patch)
tree78051f22b7a8d2419d8eb2fc2e7142eecd592b5d /backends/graphics/opengl
parent9ef2fc4744f88837c63150b09655ae3e51023b7e (diff)
downloadscummvm-rg350-36583ff888c745b2b39e8fcd51e9a4b74da33c49.tar.gz
scummvm-rg350-36583ff888c745b2b39e8fcd51e9a4b74da33c49.tar.bz2
scummvm-rg350-36583ff888c745b2b39e8fcd51e9a4b74da33c49.zip
Fixed problem with OpenGL headers and windows.
svn-id: r50906
Diffstat (limited to 'backends/graphics/opengl')
-rw-r--r--backends/graphics/opengl/glerrorcheck.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/graphics/opengl/glerrorcheck.cpp b/backends/graphics/opengl/glerrorcheck.cpp
index b64c8330f5..a4ad1e01ea 100644
--- a/backends/graphics/opengl/glerrorcheck.cpp
+++ b/backends/graphics/opengl/glerrorcheck.cpp
@@ -28,6 +28,15 @@
#include "backends/graphics/opengl/glerrorcheck.h"
#include "common/debug.h"
+#ifdef WIN32
+#if defined(ARRAYSIZE) && !defined(_WINDOWS_)
+#undef ARRAYSIZE
+#endif
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#undef ARRAYSIZE
+#endif
+
#ifdef USE_GLES
#include <GLES/gl.h>
#else