X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03e11df5470fd64d9d9a669d0b50b84c2d714736..fd88dcbccd814dda094b9756b9059bf5ed281be1:/src/common/dynlib.cpp diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 6830ec2265..796231c31a 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -77,10 +77,10 @@ return (void *)0; } #elif defined(__APPLE__) && defined(__UNIX__) -char *dlopen(char *path, int mode /* mode is ignored */); -void *dlsym(void *handle, char *symbol); +void *dlopen(const char *path, int mode /* mode is ignored */); +void *dlsym(void *handle, const char *symbol); int dlclose(void *handle); -char *dlerror(); +const char *dlerror(void); # define wxDllOpen(lib) dlopen(lib.fn_str(), 0) # define wxDllGetSymbol(handle, name) dlsym(handle, name) @@ -214,10 +214,10 @@ wxDllLoader::GetProgramHandle(void) { #if defined( HAVE_DLOPEN ) && !defined(__EMX__) // 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; + return 0; #else wxFAIL_MSG( wxT("This method is not implemented under Windows or OS/2")); return 0;