st/wgl: Fix build on mingw-w64
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Mon, 29 Aug 2011 12:28:02 +0000 (13:28 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 30 Aug 2011 08:42:01 +0000 (09:42 +0100)
Which already declares wglSwapMultipleBuffers and WGLSWAP.

src/gallium/state_trackers/wgl/stw_wgl.h

index 57baaf0..31a391d 100644 (file)
@@ -59,7 +59,7 @@ wglSetPixelFormat(HDC hdc,
                   int iPixelFormat,
                   CONST PIXELFORMATDESCRIPTOR *ppfd);
 
-#if defined(__MINGW32__) || (WINVER < 0x0500)
+#ifndef WGL_SWAPMULTIPLE_MAX
 
 typedef struct _WGLSWAP
 {
@@ -73,7 +73,7 @@ WINGDIAPI DWORD WINAPI
 wglSwapMultipleBuffers(UINT n,
                        CONST WGLSWAP *ps);
 
-#endif
+#endif /* !WGL_SWAPMULTIPLE_MAX */
 
 
 #endif /* STW_WGL_H_ */