added null ptr check
[mesa.git] / src / glut / glx / glut_input.c
index add3df7c3fd2b4cec0066cc48318ccb01c151aa3..a76ff9a435ecc06fe6588dbbf9f367a8b0a7ae6a 100644 (file)
@@ -23,6 +23,9 @@
 #endif
 #include <X11/Xutil.h>
 #else
+#ifdef __MINGW32__
+#include <GL/gl.h>
+#endif
 #include <windows.h>
 #ifndef __CYGWIN32__
 #include <mmsystem.h>  /* Win32 Multimedia API header. */