From: José Fonseca Date: Mon, 29 Aug 2011 12:28:02 +0000 (+0100) Subject: st/wgl: Fix build on mingw-w64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec759b37553226b2b945d6c5d93c4bfb630a38a4;p=mesa.git st/wgl: Fix build on mingw-w64 Which already declares wglSwapMultipleBuffers and WGLSWAP. --- 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_ */