summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/wgl
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-08-29 13:28:02 +0100
committerJosé Fonseca <[email protected]>2011-08-30 09:42:01 +0100
commitec759b37553226b2b945d6c5d93c4bfb630a38a4 (patch)
treeb6129c911ae80d92d49e771eae13b47ddcde8a03 /src/gallium/state_trackers/wgl
parentd290febdc83a828b1cbe6a5e7155e47b29385dad (diff)
st/wgl: Fix build on mingw-w64
Which already declares wglSwapMultipleBuffers and WGLSWAP.
Diffstat (limited to 'src/gallium/state_trackers/wgl')
-rw-r--r--src/gallium/state_trackers/wgl/stw_wgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_wgl.h b/src/gallium/state_trackers/wgl/stw_wgl.h
index 57baaf0a11f..31a391d960e 100644
--- a/src/gallium/state_trackers/wgl/stw_wgl.h
+++ b/src/gallium/state_trackers/wgl/stw_wgl.h
@@ -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_ */