aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/win_gl.c14
1 files changed, 10 insertions, 4 deletions
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;