X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glxwrap.c;h=6da42e6622abf2a613f373e5db2ef0014c9d80bc;hb=377222f13763b1b7b78bf558ab9ac8b70535c96d;hp=18ec3c107ccfad427ce4f694fb798c46bd441ae7;hpb=9f0b85a2b62ddcd43ef664be7156b8f5bb146367;p=fips diff --git a/glxwrap.c b/glxwrap.c index 18ec3c1..6da42e6 100644 --- a/glxwrap.c +++ b/glxwrap.c @@ -37,13 +37,16 @@ glXSwapBuffers (Display *dpy, GLXDrawable drawable) metrics_end_frame (); } - -typedef __GLXextFuncPtr (* fips_glXGetProcAddressARB_t)(const GLubyte *func); -__GLXextFuncPtr -glXGetProcAddressARB (const GLubyte *func) +/* glXGetProcAddressARB is a function which accepts a string and + * returns a generic function pointer (which nominall accepts void and + * has void return type). Of course, the user is expected to cast the + * returned function pointer to a function pointer of the expected + * type. + */ +void (*glXGetProcAddressARB (const GLubyte *func))(void) { - __GLXextFuncPtr ptr; - static fips_glXGetProcAddressARB_t glxwrap_real_glXGetProcAddressARB = NULL; + void *ptr; + static typeof(&glXGetProcAddressARB) glxwrap_real_glXGetProcAddressARB = NULL; char *name = "glXGetProcAddressARB"; if (! glxwrap_real_glXGetProcAddressARB) {