From: Vadim Zeitlin Date: Tue, 8 Mar 2005 00:07:55 +0000 (+0000) Subject: PPC 2003 SDK doesn't seem to have setlocale() neither so just don't use it under... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/05eb2d40c3ea37a9ed6e961bd9171dab012c2e47 PPC 2003 SDK doesn't seem to have setlocale() neither so just don't use it under Win CE at all git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 84cc559e76..ebdcb85d75 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -2843,9 +2843,9 @@ const wxChar *wxDateTime::ParseRfc822Date(const wxChar* date) // the locale is set; otherwise or in case of failure, leaves fmt unchanged static void GetLocaleDateFormat(wxString *fmt) { - // there is no setlocale() under Windows CE with Standard SDK, so just - // always query the system there -#ifndef WCE_PLATFORM_STANDARDSDK + // there is no setlocale() under Windows CE, so just always query the + // system there +#ifndef __WXWINCE__ if ( strcmp(setlocale(LC_ALL, NULL), "C") != 0 ) #endif {