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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user