]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
PCH-less build fix
[wxWidgets.git] / src / common / datetime.cpp
index a6758a896af40e3ac8f075b8d4d5ac93e25f2498..026bae109dfa161ea162021cf4518a8e65bd6414 100644 (file)
@@ -172,7 +172,7 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter<wxDateTime> , wxFromStringCon
         #define WX_GMTOFF_IN_TM
     #elif defined(__WXWINCE__) && defined(__VISUALC8__)
         // _timezone is not present in dynamic run-time library
-        #if 1
+        #if 0
         // Solution (1): use the function equivalent of _timezone
         static long wxGetTimeZone()
         {
@@ -186,7 +186,7 @@ wxCUSTOM_TYPE_INFO(wxDateTime, wxToStringConverter<wxDateTime> , wxFromStringCon
             return s_Timezone;
         }
         #define WX_TIMEZONE wxGetTimeZone()
-        #elif 0
+        #elif 1
         // Solution (2): using GetTimeZoneInformation
         static long wxGetTimeZone()
         {
@@ -3835,7 +3835,7 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date)
     // some special cases
     static struct
     {
-        const wxChar *str;
+        const char *str;
         int dayDiffFromToday;
     } literalDates[] =
     {
@@ -4010,7 +4010,7 @@ const wxChar *wxDateTime::ParseDate(const wxChar *date)
                 else // not a valid weekday name
                 {
                     // try the ordinals
-                    static const wxChar *ordinals[] =
+                    static const char *ordinals[] =
                     {
                         wxTRANSLATE("first"),
                         wxTRANSLATE("second"),
@@ -4176,7 +4176,7 @@ const wxChar *wxDateTime::ParseTime(const wxChar *time)
     // first try some extra things
     static const struct
     {
-        const wxChar *name;
+        const char *name;
         wxDateTime_t  hour;
     } stdTimes[] =
     {