From: Stefan Neis Date: Sun, 17 Feb 2002 01:04:06 +0000 (+0000) Subject: Fixed OS/2 compilation problems. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c822ad5a5e30a21ca3340af644bf79804cf7c777 Fixed OS/2 compilation problems. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 ) {