diff --git a/include/wx/wxcrt.h b/include/wx/wxcrt.h index 74a63624d6..bcbbf3027a 100644 --- a/include/wx/wxcrt.h +++ b/include/wx/wxcrt.h @@ -791,7 +791,7 @@ WXDLLIMPEXP_BASE wxChar * wxStrtok(wxChar *psz, const wxChar *delim, wxChar **sa WXDLLIMPEXP_BASE wxWCharBuffer wxSetlocale_(int category, const wxChar *locale); WXDLLIMPEXP_BASE wxWCharBuffer wxSetlocale(int category, const wxChar *locale); #else - WXDLLIMPEXP_BASE const wxChar *wxSetlocale(int category, const wxChar *locale); + WXDLLIMPEXP_BASE wxChar *wxSetlocale(int category, const wxChar *locale); #endif // defined(wxSetlocale_) #endif // __cplusplus diff --git a/src/common/wxcrt.cpp b/src/common/wxcrt.cpp index 3d12a3bee7..15bc111642 100644 --- a/src/common/wxcrt.cpp +++ b/src/common/wxcrt.cpp @@ -820,9 +820,9 @@ wxWCharBuffer wxSetlocale(int category, const wxChar *locale) return rv; } #else // defined(wxSetlocale_) -const wxChar *wxSetlocale(int category, const wxChar *locale) +wxChar *wxSetlocale(int category, const wxChar *locale) { - const wxChar *rv = wxSetlocale_(category, locale); + wxChar *rv = wxSetlocale_(category, locale); if ( rv ) wxUpdateLocaleIsUtf8(); return rv;