X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33d5c15653992d26b0f1eed95b6c0197e36dc9f1..213ad8e72cb6e838d15bf54145d661b081dca308:/include/wx/datetime.h diff --git a/include/wx/datetime.h b/include/wx/datetime.h index 42d9e4f926..962d0396b3 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -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: