summaryrefslogtreecommitdiff
path: root/src/xdemos/glinfo_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xdemos/glinfo_common.h')
-rw-r--r--src/xdemos/glinfo_common.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xdemos/glinfo_common.h b/src/xdemos/glinfo_common.h
index 61d16436..d0daf4dd 100644
--- a/src/xdemos/glinfo_common.h
+++ b/src/xdemos/glinfo_common.h
@@ -28,13 +28,13 @@
#define GLINFO_COMMON_H
-/**
- * Note: the gl.h header shipped with MinGW doesn't include glext.h so we
- * include it here. And the PFNGL typedefs are hit and miss so we define
- * our own here.
- */
+#ifdef _WIN32
+/* GL/glext.h is not commonly available on Windows. */
+#include <GL/glew.h>
+#else
#include <GL/gl.h>
#include <GL/glext.h>
+#endif
typedef void (APIENTRY * GETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
typedef const GLubyte *(APIENTRY * GETSTRINGIPROC) (GLenum name, GLuint index);