compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -768,15 +768,18 @@ bool wxLocale::Init(int language, int flags)
|
|||||||
wxMB2WXbuf retloc = wxSetlocale(LC_ALL , wxEmptyString);
|
wxMB2WXbuf retloc = wxSetlocale(LC_ALL , wxEmptyString);
|
||||||
#else
|
#else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#define WX_NO_LOCALE_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxChar *szLocale = retloc ? wxStrdup(retloc) : NULL;
|
#ifndef WX_NO_LOCALE_SUPPORT
|
||||||
|
wxChar *szLocale = retloc ? wxStrdup(retloc) : NULL;
|
||||||
bool ret = Init(name, canonical, retloc,
|
bool ret = Init(name, canonical, retloc,
|
||||||
(flags & wxLOCALE_LOAD_DEFAULT) != 0,
|
(flags & wxLOCALE_LOAD_DEFAULT) != 0,
|
||||||
(flags & wxLOCALE_CONV_ENCODING) != 0);
|
(flags & wxLOCALE_CONV_ENCODING) != 0);
|
||||||
if (szLocale)
|
if (szLocale)
|
||||||
free(szLocale);
|
free(szLocale);
|
||||||
return ret;
|
return ret;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user