print '#include "glproc.hpp"'
print '#include "glsize.hpp"'
print
- print 'extern "C" {'
- print
print 'static __GLXextFuncPtr __unwrap_proc_addr(const GLubyte * procName, __GLXextFuncPtr procPtr);'
print
* we need to intercept the dlopen() call here, and redirect to our wrapper
* shared object.
*/
-void *dlopen(const char *filename, int flag)
+extern "C" void *
+dlopen(const char *filename, int flag)
{
void *handle;
return handle;
}
-} /* extern "C" */
-
/*
* Lookup a libGL symbol
print '#include "glproc.hpp"'
print '#include "glsize.hpp"'
print
- print 'extern "C" {'
- print
api = API()
api.add_api(glapi)
api.add_api(wglapi)
tracer = WglTracer()
tracer.trace_api(api)
- print
- print '} /* extern "C" */'