From 922057ce94be7190058447ffb74c60a56f1cfaa7 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 24 May 2021 00:13:44 +0200 Subject: Fix the declaration of WGL function types --- src/win_gl.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/win_gl.c b/src/win_gl.c index 4abd5ab..1fda81a 100644 --- a/src/win_gl.c +++ b/src/win_gl.c @@ -52,10 +52,16 @@ #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 -typedef HGLRC (*WglCreateContextAttribs)(HDC, HGLRC, const int*); -typedef BOOL (*WglSwapInterval)(int); -typedef BOOL ( - *WglChoosePixelFormat)(HDC, const int*, const FLOAT*, UINT, int*, UINT*); +typedef HGLRC(WINAPI* WglCreateContextAttribs)(HDC, HGLRC, const int*); + +typedef BOOL(WINAPI* WglSwapInterval)(int); + +typedef BOOL(WINAPI* WglChoosePixelFormat)(HDC, + const int*, + const FLOAT*, + UINT, + int*, + UINT*); typedef struct { WglChoosePixelFormat wglChoosePixelFormat; -- cgit v1.2.1