X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/229d3f1c1fac88569a94b7a22fdc3149d57a46d4..6eccc0c485e57fe27fc56673f4f4dd191a09b2e6:/src/common/dynlib.cpp diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 91981e3061..b6cbcec443 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -322,11 +322,14 @@ void *wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name, bool *su #elif defined(__WXPM__) || defined(__EMX__) wxDllGetSymbol(dllHandle, symbol); -#else +#else // Windows or Unix + // mb_str() is necessary in Unicode build - symbol = wxDllGetSymbol(dllHandle, name.mb_str()); + // + // "void *" cast is needed by gcc 3.1 + w32api 1.4, don't ask me why + symbol = (void *)wxDllGetSymbol(dllHandle, name.mb_str()); -#endif +#endif // OS if ( !symbol ) { @@ -457,7 +460,7 @@ const char *dlerror() return dl_last_error; } -void *dlopen(const char *path, int mode /* mode is ignored */) +void *dlopen(const char *path, int WXUNUSED(mode) /* mode is ignored */) { int dyld_result; NSObjectFileImage ofile; @@ -484,7 +487,7 @@ int dlclose(void *handle) return 0; } -void *dlsym(void *handle, const char *symbol) +void *dlsym(void *WXUNUSED(handle), const char *symbol) { void *addr;