]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetime.h
renamed m_MapFile into m_helpDir because this is what it really is
[wxWidgets.git] / include / wx / datetime.h
index 53da88e61d0a74ed58d70513f852cdebb8f24bd5..962d0396b3228dadbb1fec0d2b321f5a4fdb3236 100644 (file)
@@ -56,16 +56,22 @@ class WXDLLIMPEXP_BASE wxDateSpan;
 #ifdef HAVE_LOCALTIME_R
 #define wxLocaltime_r localtime_r
 #else
-struct tm *wxLocaltime_r(const time_t*, struct tm*)
+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*)
+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: