glx: Untangle the prototypes around the GetProcAddress thunk

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
Adam Jackson 2013-12-03 15:01:44 -05:00 committed by Keith Packard
parent c1fd143f28
commit 47f00b3920
2 changed files with 5 additions and 3 deletions

View File

@ -544,10 +544,10 @@ __glXleaveServer(GLboolean rendering)
glxServerLeaveCount++;
}
static void (*(*_get_proc_address)(const char *))(void);
static glx_gpa_proc _get_proc_address;
void
__glXsetGetProcAddress(void (*(*get_proc_address) (const char *))(void))
__glXsetGetProcAddress(glx_gpa_proc get_proc_address)
{
_get_proc_address = get_proc_address;
}

View File

@ -117,7 +117,9 @@ void __glXleaveServer(GLboolean rendering);
void glxSuspendClients(void);
void glxResumeClients(void);
void __glXsetGetProcAddress(void (*(*get_proc_address) (const char *)) (void));
typedef void (*glx_func_ptr)(void);
typedef glx_func_ptr (*glx_gpa_proc)(const char *);
void __glXsetGetProcAddress(glx_gpa_proc get_proc_address);
void *__glGetProcAddress(const char *);
void