blind fix for latest mingw32 3.1

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-06-13 19:09:24 +00:00
parent 1c25d24586
commit b7b35e5063

View File

@ -322,11 +322,14 @@ void *wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name, bool *su
#elif defined(__WXPM__) || defined(__EMX__)
wxDllGetSymbol(dllHandle, symbol);
#else
// mb_str() is necessary in Unicode build
symbol = wxDllGetSymbol(dllHandle, name.mb_str());
#else // Windows or Unix
#endif
// mb_str() is necessary in Unicode build
//
// "void *" cast is needed by gcc 3.1 + w32api 1.4, don't ask me why
symbol = (void *)wxDllGetSymbol(dllHandle, name.mb_str());
#endif // OS
if ( !symbol )
{