X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/384223b34b597844512652e5200ceaae82229c55..c3357374af44fdcae9d326e62ab5a39d9517102d:/include/wx/datetime.h diff --git a/include/wx/datetime.h b/include/wx/datetime.h index 69872ce28a..a9842fd982 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -36,6 +36,19 @@ class WXDLLEXPORT wxDateSpan; #define inline #endif // Debug +// not all c-runtimes are based on 1/1/1970 being (time_t) 0 +// set this to the corresponding value in seconds 1/1/1970 has on your +// systems c-runtime + +#ifdef __WXMAC__ +#if __MSL__ < 0x6000 + #define WX_TIME_BASE_OFFSET ( 2082844800L + 126144000L ) +#else + #define WX_TIME_BASE_OFFSET 0 +#endif +#else + #define WX_TIME_BASE_OFFSET 0 +#endif /* * TODO *