fix for HP-UX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-07-29 16:12:23 +00:00
parent 0bcddc59c8
commit 7742efff20

View File

@@ -183,11 +183,15 @@ void *wxLibrary::GetSymbol(const wxString& symbname)
wxDllType wxDllType
wxDllLoader::GetProgramHandle(void) wxDllLoader::GetProgramHandle(void)
{ {
#ifdef __UNIX__ #if defined( HAVE_DLOPEN )
// optain handle for main program
return dlopen(NULL, RTLD_NOW/*RTLD_LAZY*/); return dlopen(NULL, RTLD_NOW/*RTLD_LAZY*/);
#elif defined (HAVE_SHL_LOAD)
// shl_findsymbol with NULL handle looks up in main program
return 0;
#else #else
#warning "Please implement this for your system!"
wxFAIL_MSG(_("This method is not implemented under Windows or OS/2")); wxFAIL_MSG(_("This method is not implemented under Windows or OS/2"));
return 0; return 0;
#endif #endif
} }