- wxDynamicLibrary::GetDllExt() now returns ".bundle", not ".dylib"

- wxDynamicLibrary::GetSymbol() now prepends underscore to the symbol name


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-10-17 19:45:20 +00:00
parent bf9848e73d
commit 42a2452301
2 changed files with 12 additions and 14 deletions

View File

@@ -214,6 +214,11 @@ Unix:
- wxPuts() now correctly outputs trailing new line in Unicode build - wxPuts() now correctly outputs trailing new line in Unicode build
Mac:
- wxDynamicLibrary::GetDllExt() now returns ".bundle", not ".dylib"
- wxDynamicLibrary::GetSymbol() now prepends underscore to the symbol name
wxGTK: wxGTK:
- fixed wxFileDialog::SetWildcard() - fixed wxFileDialog::SetWildcard()

View File

@@ -126,19 +126,12 @@ int dlclose(void *handle)
void *dlsym(void *handle, const char *symbol) void *dlsym(void *handle, const char *symbol)
{ {
void *addr; // as on many other systems, C symbols have prepended underscores under
// Darwin but unlike the normal dlopen(), NSLookupSymbolInModule() is not
NSSymbol nsSymbol = NSLookupSymbolInModule( handle , symbol ) ; // aware of this
NSSymbol nsSymbol = NSLookupSymbolInModule( handle,
if ( nsSymbol) wxString(_T('_')) + symbol );
{ return nsSymbol ? NSAddressOfSymbol(nsSymbol) : NULL;
addr = NSAddressOfSymbol(nsSymbol);
}
else
{
addr = NULL;
}
return addr;
} }
#endif // defined(__DARWIN__) #endif // defined(__DARWIN__)
@@ -159,7 +152,7 @@ void *dlsym(void *handle, const char *symbol)
#if defined(__HPUX__) #if defined(__HPUX__)
const wxChar *wxDynamicLibrary::ms_dllext = _T(".sl"); const wxChar *wxDynamicLibrary::ms_dllext = _T(".sl");
#elif defined(__DARWIN__) #elif defined(__DARWIN__)
const wxChar *wxDynamicLibrary::ms_dllext = _T(".dylib"); const wxChar *wxDynamicLibrary::ms_dllext = _T(".bundle");
#else #else
const wxChar *wxDynamicLibrary::ms_dllext = _T(".so"); const wxChar *wxDynamicLibrary::ms_dllext = _T(".so");
#endif #endif