aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-03-13 22:19:40 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-03-13 22:19:40 +0000
commit0f0543fd1b27cc07c3bb06d47763e3e1007adc3c (patch)
treeed7949a18a070de0ed1f7c6f4e5d1ccfe07ad338 /src
parenta46710f39f55cc81905caf1b48803f66a2d8eb97 (diff)
downloadpiglit-0f0543fd1b27cc07c3bb06d47763e3e1007adc3c.tar.gz
Portability build fixes for MinGW.
Diffstat (limited to 'src')
-rw-r--r--src/piglit/gl_wrap.h4
-rw-r--r--src/piglit/glut_wrap.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/piglit/gl_wrap.h b/src/piglit/gl_wrap.h
index cf68c737..872f768b 100644
--- a/src/piglit/gl_wrap.h
+++ b/src/piglit/gl_wrap.h
@@ -38,6 +38,10 @@
extern "C" {
#endif
+#ifdef WIN32
+#include <windows.h>
+#endif
+
#ifdef USE_OPENGL
# include "glew.h"
/* Include the real headers too, in case GLEW misses something. */
diff --git a/src/piglit/glut_wrap.h b/src/piglit/glut_wrap.h
index e03af04d..245b6d05 100644
--- a/src/piglit/glut_wrap.h
+++ b/src/piglit/glut_wrap.h
@@ -38,6 +38,10 @@
extern "C" {
#endif
+#ifdef WIN32
+#include <windows.h>
+#endif
+
#ifdef USE_GLUT
# ifdef __APPLE__
# include <GLUT/glut.h>