diff options
author | Emil Velikov <[email protected]> | 2016-12-05 19:52:44 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-01-18 16:01:14 +0000 |
commit | 9898bcf3f46a60d121c4b5aa37ea1dea417b3547 (patch) | |
tree | 9530949cf51e39f692c02198690f8119a794a2d9 /src/glx | |
parent | dfc84c2296891858ef9d12800ae778063b76c05a (diff) |
glx: use GLX_ALIAS for glXGetProcAddress
Use the macro, rather than open-coding it.
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/glxcmds.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 7266b58652e..6c7bbfd5d1c 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -2663,19 +2663,10 @@ _GLX_PUBLIC void (*glXGetProcAddressARB(const GLubyte * procName)) (void) * * \sa glXGetProcAddressARB */ -_GLX_PUBLIC void (*glXGetProcAddress(const GLubyte * procName)) (void) -# ifdef HAVE_FUNC_ATTRIBUTE_ALIAS -# if defined(USE_MGL_NAMESPACE) - __attribute__ ((alias("mglXGetProcAddressARB"))); -# else - __attribute__ ((alias("glXGetProcAddressARB"))); -# endif -#else -{ - return glXGetProcAddressARB(procName); -} -#endif /* HAVE_FUNC_ATTRIBUTE_ALIA */ - +_GLX_PUBLIC +GLX_ALIAS(__GLXextFuncPtr, glXGetProcAddress, + (const GLubyte * procName), + (procName), glXGetProcAddressARB) #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) /** |