fix the old code for dlerror() returning const char as well (why was it changed?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -268,7 +268,7 @@ wxDllType wxDllLoader::LoadLibrary(const wxString & libname, bool *success)
|
|||||||
wxString msg(_("Failed to load shared library '%s'"));
|
wxString msg(_("Failed to load shared library '%s'"));
|
||||||
|
|
||||||
#ifdef HAVE_DLERROR
|
#ifdef HAVE_DLERROR
|
||||||
wxChar *err = dlerror();
|
const wxChar *err = dlerror();
|
||||||
if( err )
|
if( err )
|
||||||
{
|
{
|
||||||
failed = TRUE;
|
failed = TRUE;
|
||||||
@@ -327,7 +327,7 @@ void *wxDllLoader::GetSymbol(wxDllType dllHandle, const wxString &name, bool *su
|
|||||||
wxString msg(_("wxDllLoader failed to GetSymbol '%s'"));
|
wxString msg(_("wxDllLoader failed to GetSymbol '%s'"));
|
||||||
|
|
||||||
#ifdef HAVE_DLERROR
|
#ifdef HAVE_DLERROR
|
||||||
wxChar *err = dlerror();
|
const wxChar *err = dlerror();
|
||||||
if( err )
|
if( err )
|
||||||
{
|
{
|
||||||
failed = TRUE;
|
failed = TRUE;
|
||||||
|
Reference in New Issue
Block a user