From 1828cbff5ae658f4c13807f4591535cc05a4d399 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 28 Jun 2002 17:15:49 +0000 Subject: [PATCH] get the type for getProcAddress right --- include/QF/GL/funcs.h | 2 +- libs/video/targets/vid_wgl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/QF/GL/funcs.h b/include/QF/GL/funcs.h index bb5809d0b..79164e0c4 100644 --- a/include/QF/GL/funcs.h +++ b/include/QF/GL/funcs.h @@ -48,7 +48,7 @@ void *QFGL_ProcAddress (void *, const char *, qboolean); extern void *(*glGetProcAddress) (const char *); #ifdef _WIN32 -extern void *(*getProcAddress) (HINSTANCE, LPCSTR); +extern FARPROC (WINAPI *getProcAddress) (HINSTANCE, LPCSTR); #else extern void *(*getProcAddress) (void *, const char *); #endif diff --git a/libs/video/targets/vid_wgl.c b/libs/video/targets/vid_wgl.c index ec2c6da5e..c438aaceb 100644 --- a/libs/video/targets/vid_wgl.c +++ b/libs/video/targets/vid_wgl.c @@ -142,7 +142,7 @@ void GL_Init (void); #if defined(_WIN32) void * (* glGetProcAddress) (const char *symbol) = NULL; -void * (* getProcAddress) (HINSTANCE, LPCSTR); +FARPROC (WINAPI *getProcAddress) (HINSTANCE, LPCSTR); void * QFGL_LoadLibrary (void)