X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/409bd320f30236c8f883bcd7a65ff953309da884..912c192f7b15090c6ab160c6400b9fb01118187c:/src/common/dynload.cpp?ds=inline diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp index 91cb64d3eb..c88597a1b9 100644 --- a/src/common/dynload.cpp +++ b/src/common/dynload.cpp @@ -113,7 +113,7 @@ bool wxDynamicLibrary::Load(wxString libname, int flags) #elif defined(__WXPM__) || defined(__EMX__) char err[256] = ""; - DosLoadModule(err, sizeof(err), libname.c_str(), &m_handle) + DosLoadModule(err, sizeof(err), libname.c_str(), &m_handle); #elif defined(HAVE_DLOPEN) @@ -183,7 +183,7 @@ bool wxDynamicLibrary::Load(wxString libname, int flags) if ( m_handle == 0 ) { wxString msg(_("Failed to load shared library '%s'")); -#ifdef HAVE_DLERROR +#if defined(HAVE_DLERROR) && !defined(__EMX__) const wxChar *err = dlerror(); if( err ) wxLogError( msg, err ); @@ -261,7 +261,7 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const if ( !symbol ) { wxString msg(_("wxDynamicLibrary failed to GetSymbol '%s'")); -#ifdef HAVE_DLERROR +#if defined(HAVE_DLERROR) && !defined(__EMX__) const wxChar *err = dlerror(); if( err ) {