Mesa (master): st/wgl: Fix build on mingw-w64
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Aug 30 08:43:41 UTC 2011
Module: Mesa
Branch: master
Commit: ec759b37553226b2b945d6c5d93c4bfb630a38a4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec759b37553226b2b945d6c5d93c4bfb630a38a4
Author: José Fonseca <jose.r.fonseca at gmail.com>
Date: Mon Aug 29 13:28:02 2011 +0100
st/wgl: Fix build on mingw-w64
Which already declares wglSwapMultipleBuffers and WGLSWAP.
---
src/gallium/state_trackers/wgl/stw_wgl.h | 4 ++--
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 57baaf0..31a391d 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_ */
More information about the mesa-commit
mailing list