]> git.cworth.org Git - apitrace/commitdiff
s/__dlsym/__libgl_sym/
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 11 Jun 2011 11:26:39 +0000 (12:26 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 11 Jun 2011 11:26:39 +0000 (12:26 +0100)
cgltrace.py
glproc.py
glxtrace.py

index 75da1b6016f90f759c8daf8309bef1f7a6f0473f..92626f3a19620e039ffe46863c6a028b6acbc5ad 100644 (file)
@@ -84,7 +84,7 @@ static void *libgl_handle = NULL;
 /*
  * Lookup a libGL symbol
  */
-static void * __dlsym(const char *symbol)
+void * __libgl_sym(const char *symbol)
 {
     void *result;
 
index 9f9345aabec671915c555f56612c1305778075b5..16b5d180b9baccc4bf189187c7cf3cd6895cedf7 100644 (file)
--- a/glproc.py
+++ b/glproc.py
@@ -424,8 +424,8 @@ class GlDispatcher(Dispatcher):
         print '#    define __getPrivateProcAddress(name) __wglGetProcAddress(name)'
         print '     static inline PROC __stdcall __wglGetProcAddress(const char * lpszProc);'
         print '#  else'
-        print '#    define __getPublicProcAddress(name) __dlsym(name)'
-        print '     static void * __dlsym(const char *symbol);'
+        print '#    define __getPublicProcAddress(name) __libgl_sym(name)'
+        print '     void * __libgl_sym(const char *symbol);'
         print '#    ifdef __APPLE__'
         print '#      define __getPrivateProcAddress(name) __getPublicProcAddress(name)'
         print '#    else'
index 55fafc8ef33efa38a8d4a4ce3b04f01adf3fea63..2a49d25fcf0c18310ba3123c768ae7261425d2d6 100644 (file)
@@ -166,7 +166,7 @@ void * dlopen(const char *filename, int flag)
 /*
  * Lookup a libGL symbol
  */
-static void * __dlsym(const char *symbol)
+void * __libgl_sym(const char *symbol)
 {
     void *result;