diff options
author | dgp@users.sourceforge.net <dgp> | 2015-07-17 21:22:22 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2015-07-17 21:22:22 (GMT) |
commit | dee9a9cbe77ea21d498f9c6c3885df0a93c8da50 (patch) | |
tree | eb303b04e47fe05468dc5620171a0ee2c8453095 /unix/tclUnixTime.c | |
parent | 3b5dff82b3bea4153a4034c95ebdc7af76076428 (diff) | |
parent | 77985b9936c999f8cbcb0f87825fedb45afada9a (diff) | |
download | tcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.zip tcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.tar.gz tcl-dee9a9cbe77ea21d498f9c6c3885df0a93c8da50.tar.bz2 |
merge trunk
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; |