WinCE doesn't have GetThreadLocale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2844,7 +2844,11 @@ void GetLocaleDateFormat(wxString *fmt)
|
|||||||
// done using wxLocale, in which case thread's current locale is also
|
// done using wxLocale, in which case thread's current locale is also
|
||||||
// set to correct LCID value and we can use GetLocaleInfo to determine
|
// set to correct LCID value and we can use GetLocaleInfo to determine
|
||||||
// the correct formatting string:
|
// the correct formatting string:
|
||||||
|
#ifdef __WXWINCE__
|
||||||
|
LCID lcid = LOCALE_USER_DEFAULT;
|
||||||
|
#else
|
||||||
LCID lcid = GetThreadLocale();
|
LCID lcid = GetThreadLocale();
|
||||||
|
#endif
|
||||||
wxChar delim[5]; // fields deliminer, 4 chars max
|
wxChar delim[5]; // fields deliminer, 4 chars max
|
||||||
if ( GetLocaleInfo(lcid, LOCALE_SDATE, delim, 5) )
|
if ( GetLocaleInfo(lcid, LOCALE_SDATE, delim, 5) )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user