correcting lookup of equal names in different modules

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-06-03 20:21:12 +00:00
parent 3964e424bf
commit 0154fd2c88

View File

@@ -480,15 +480,19 @@ int dlclose(void *handle)
return 0; return 0;
} }
void *dlsym(void *WXUNUSED(handle), const char *symbol) void *dlsym(void *handle, const char *symbol)
{ {
void *addr; void *addr;
NSSymbol nsSymbol = NSLookupSymbolInModule( handle , symbol ) ;
if (NSIsSymbolNameDefined(symbol)) { if ( nsSymbol)
addr = NSAddressOfSymbol(NSLookupAndBindSymbol(symbol)); {
addr = NSAddressOfSymbol(nsSymbol);
} }
else { else
addr = NULL; {
addr = NULL;
} }
return addr; return addr;
} }