Fix build on Mingw-w64.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 29 Apr 2011 09:08:32 +0000 (10:08 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Fri, 29 Apr 2011 09:08:41 +0000 (10:08 +0100)
glimports.hpp

index 5277a0a..5e89938 100644 (file)
@@ -70,7 +70,7 @@
 #define PFD_SUPPORT_COMPOSITION 0x00008000
 #endif
 
-#ifdef __MINGW32__
+#ifndef WGL_SWAPMULTIPLE_MAX
 
 extern "C"
 typedef struct _WGLSWAP
@@ -81,7 +81,7 @@ typedef struct _WGLSWAP
 
 #define WGL_SWAPMULTIPLE_MAX 16
 
-#endif /* __MINGW32__ */
+#endif /* !WGL_SWAPMULTIPLE_MAX */
 
 #else /* !_WIN32 */