diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-07 13:42:14 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-07 13:42:14 (GMT) |
| commit | 76fd53b302b65b7036811a4a56c844c39f3ea55c (patch) | |
| tree | 99f6ab6266f42997cf8b03ed6819ce48366b9aff /win/tclWinTime.c | |
| parent | 4f237d732e8a197cc0f9a8f664c8541f8fbfff76 (diff) | |
| parent | 7a36f112165d055e0093e8d87fd3637306b721e3 (diff) | |
| download | tcl-76fd53b302b65b7036811a4a56c844c39f3ea55c.zip tcl-76fd53b302b65b7036811a4a56c844c39f3ea55c.tar.gz tcl-76fd53b302b65b7036811a4a56c844c39f3ea55c.tar.bz2 | |
Merge 8.7. Don't bother BorlandC, LCC and WatcomC any more, since they (probably) cannot handle Windows 7 API anyway.
Diffstat (limited to 'win/tclWinTime.c')
| -rw-r--r-- | win/tclWinTime.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c index b18c83f..088c02b 100644 --- a/win/tclWinTime.c +++ b/win/tclWinTime.c @@ -754,24 +754,7 @@ TclpGetDate( * daylight savings time before the epoch. */ - /* - * Hm, Borland's localtime manages to return NULL under certain - * circumstances (e.g. wintime.test, test 1.2). Nobody tests for this, - * since 'localtime' isn't supposed to do this, possibly leading to - * crashes. - * - * Patch: We only call this function if we are at least one day into - * the epoch, else we handle it ourselves (like we do for times < 0). - * H. Giese, June 2003 - */ - -#ifdef __BORLANDC__ -#define LOCALTIME_VALIDITY_BOUNDARY SECSPERDAY -#else -#define LOCALTIME_VALIDITY_BOUNDARY 0 -#endif - - if (t2 >= LOCALTIME_VALIDITY_BOUNDARY) { + if (t2 >= 0) { return TclpLocaltime(&t2); } |
