X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b52a6842651f8705d5b8cf2bfa069ee8026ec91..bcfa2b31849b797d5a0660b6a80c330f243a0211:/include/wx/datetime.h diff --git a/include/wx/datetime.h b/include/wx/datetime.h index 8c1e262147..962d0396b3 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -57,7 +57,7 @@ class WXDLLIMPEXP_BASE wxDateSpan; #define wxLocaltime_r localtime_r #else struct tm *wxLocaltime_r(const time_t*, struct tm*); -#if wxUSE_THREADS && !defined(__WINDOWS__) +#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 @@ -67,7 +67,7 @@ struct tm *wxLocaltime_r(const time_t*, struct tm*); #define wxGmtime_r gmtime_r #else struct tm *wxGmtime_r(const time_t*, struct tm*); -#if wxUSE_THREADS && !defined(__WINDOWS__) +#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