print '# define __getPrivateProcAddress(name) __wglGetProcAddress(name)'
print ' static inline PROC __stdcall __wglGetProcAddress(const char * lpszProc);'
print '# else'
- print ' static void *libgl_handle = RTLD_NEXT;'
- print '# define __getPublicProcAddress(name) dlsym(libgl_handle, name)'
+ print '# define __getPublicProcAddress(name) __dlsym(name)'
print '# define __getPrivateProcAddress(name) __glXGetProcAddressARB((const GLubyte *)(name))'
+ print ' static void * __dlsym(const char *symbol);'
print ' static inline __GLXextFuncPtr __glXGetProcAddressARB(const GLubyte * procName);'
print '# endif'
print '# define __abort() Trace::Abort()'