From: Vadim Zeitlin Date: Fri, 21 Dec 2001 13:43:00 +0000 (+0000) Subject: compilation fix for dlerror() returning const char * X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a1706592402b755f42e86a31811750b893c1b1a2?ds=sidebyside compilation fix for dlerror() returning const char * git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp index 298b362690..c1e35efc79 100644 --- a/src/common/dynload.cpp +++ b/src/common/dynload.cpp @@ -192,7 +192,7 @@ wxDllType wxDllLoader::LoadLibrary(const wxString &name) { wxString msg(_("Failed to load shared library '%s'")); #ifdef HAVE_DLERROR - wxChar *err = dlerror(); + const wxChar *err = dlerror(); if( err ) wxLogError( msg, err ); #else @@ -237,7 +237,7 @@ void *wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name, bool *su { wxString msg(_("wxDllLoader failed to GetSymbol '%s'")); #ifdef HAVE_DLERROR - wxChar *err = dlerror(); + const wxChar *err = dlerror(); if( err ) { failed = TRUE;