get the type for getProcAddress right

This commit is contained in:
Bill Currie 2002-06-28 17:15:49 +00:00
parent 8e2dbc1947
commit 1828cbff5a
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ void *QFGL_ProcAddress (void *, const char *, qboolean);
extern void *(*glGetProcAddress) (const char *); extern void *(*glGetProcAddress) (const char *);
#ifdef _WIN32 #ifdef _WIN32
extern void *(*getProcAddress) (HINSTANCE, LPCSTR); extern FARPROC (WINAPI *getProcAddress) (HINSTANCE, LPCSTR);
#else #else
extern void *(*getProcAddress) (void *, const char *); extern void *(*getProcAddress) (void *, const char *);
#endif #endif

View file

@ -142,7 +142,7 @@ void GL_Init (void);
#if defined(_WIN32) #if defined(_WIN32)
void * (* glGetProcAddress) (const char *symbol) = NULL; void * (* glGetProcAddress) (const char *symbol) = NULL;
void * (* getProcAddress) (HINSTANCE, LPCSTR); FARPROC (WINAPI *getProcAddress) (HINSTANCE, LPCSTR);
void * void *
QFGL_LoadLibrary (void) QFGL_LoadLibrary (void)