#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 )
{