From: Vadim Zeitlin Date: Thu, 13 Jun 2002 19:09:24 +0000 (+0000) Subject: blind fix for latest mingw32 3.1 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b7b35e5063b8430324ba2fa05d5e6f58a34dd3b9 blind fix for latest mingw32 3.1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index f293839180..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 ) {