]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetime.h
Removed every usage of obsolete wxTLW flags. 2.6 compatibility markup for them.
[wxWidgets.git] / include / wx / datetime.h
index 42d9e4f926ccee91f49a0404fc3ff7bace3427a4..18f0829a09af440ee8e31c58aa8f067b42b5f30e 100644 (file)
@@ -57,15 +57,21 @@ class WXDLLIMPEXP_BASE wxDateSpan;
 #define wxLocaltime_r localtime_r
 #else
 struct tm *wxLocaltime_r(const time_t*, struct tm*);
+#if wxUSE_THREADS && !defined(__WINDOWS__) && !defined(__WATCOMC__)
+     // On Windows, localtime _is_ threadsafe!
 #warning using pseudo thread-safe wrapper for localtime to emulate localtime_r
 #endif
+#endif
 
 #ifdef HAVE_GMTIME_R
 #define wxGmtime_r gmtime_r
 #else
 struct tm *wxGmtime_r(const time_t*, struct tm*);
+#if wxUSE_THREADS && !defined(__WINDOWS__) && !defined(__WATCOMC__)
+     // On Windows, gmtime _is_ threadsafe!
 #warning using pseudo thread-safe wrapper for gmtime to emulate gmtime_r
 #endif
+#endif
 
 /*
   The three (main) classes declared in this header represent:
@@ -698,6 +704,7 @@ public:
                                      Month month = Inv_Month,
                                      int year = Inv_Year);
 
+#if WXWIN_COMPATIBILITY_2_6
         // sets the date to the given day of the given week in the year,
         // returns true on success and false if given date doesn't exist (e.g.
         // numWeek is > 53)
@@ -710,6 +717,7 @@ public:
     wxDEPRECATED( wxDateTime GetWeek(wxDateTime_t numWeek,
                                      WeekDay weekday = Mon,
                                      WeekFlags flags = Monday_First) const );
+#endif // WXWIN_COMPATIBILITY_2_6
 
         // returns the date corresponding to the given week day of the given
         // week (in ISO notation) of the specified year