diff options
| author | dgp <dgp@users.sourceforge.net> | 2016-06-16 16:27:01 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2016-06-16 16:27:01 (GMT) |
| commit | b36880503c6464eb0404613b2e6f0ea9605d33ef (patch) | |
| tree | 8e125264e32e68a389be074bfb8795cd212b9114 /unix/tclUnixTime.c | |
| parent | 3c2b67a4d35a1953c3b0d4f3a541f1e792ae5495 (diff) | |
| parent | 99d3f3c9f3dc5752e4887e6dec6661fabd80cd50 (diff) | |
| download | tcl-b36880503c6464eb0404613b2e6f0ea9605d33ef.zip tcl-b36880503c6464eb0404613b2e6f0ea9605d33ef.tar.gz tcl-b36880503c6464eb0404613b2e6f0ea9605d33ef.tar.bz2 | |
Merge tip of core-8-6-branch
Diffstat (limited to 'unix/tclUnixTime.c')
| -rw-r--r-- | unix/tclUnixTime.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index 926e8f4..315bcf9 100644 --- a/unix/tclUnixTime.c +++ b/unix/tclUnixTime.c @@ -16,9 +16,6 @@ #include <mach/mach_time.h> #endif -#define TM_YEAR_BASE 1900 -#define IsLeapYear(x) (((x)%4 == 0) && ((x)%100 != 0 || (x)%400 == 0)) - /* * TclpGetDate is coded to return a pointer to a 'struct tm'. For thread * safety, this structure must be in thread-specific data. The 'tmKey' @@ -202,7 +199,7 @@ TclpWideClicksToNanoseconds( #ifdef MAC_OSX_TCL static mach_timebase_info_data_t tb; static uint64_t maxClicksForUInt64; - + if (!tb.denom) { mach_timebase_info(&tb); maxClicksForUInt64 = UINT64_MAX / tb.numer; |
