diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-11-22 08:25:26 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-11-22 08:25:26 (GMT) |
commit | 5a7a628375d4ce2645419adcc61acc3c0bb19ab6 (patch) | |
tree | cefc496fa17b9106333018172d505a2a317034b9 | |
parent | 83ca2639b30b6a474588bf542e8d4a8f954f4bd7 (diff) | |
parent | 986915b1fc9f3ad191721b4cb60476629d0ed4c4 (diff) | |
download | tcl-5a7a628375d4ce2645419adcc61acc3c0bb19ab6.zip tcl-5a7a628375d4ce2645419adcc61acc3c0bb19ab6.tar.gz tcl-5a7a628375d4ce2645419adcc61acc3c0bb19ab6.tar.bz2 |
[Bug 2935503] Windows: file mtime sets wrong time (VS2005+ only)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tclTest.c | 4 | ||||
-rw-r--r-- | win/tclWinFile.c | 3 | ||||
-rw-r--r-- | win/tclWinPort.h | 5 |
4 files changed, 13 insertions, 5 deletions
@@ -1,3 +1,9 @@ +2011-11-22 Jan Nijtmans <nijtmans@users.sf.net> + + * win/tclWinPort.h: [Bug 2935503] Windows: file mtime + * win/tclWinFile.c: sets wrong time (VS2005+ only) + * generic/tclTest.c: + 2011-11-04 Don Porter <dgp@users.sourceforge.net> *** 8.5.11 TAGGED FOR RELEASE *** diff --git a/generic/tclTest.c b/generic/tclTest.c index 0f497b0..98208af 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -15,11 +15,11 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ -#include <math.h> - #define TCL_TEST #include "tclInt.h" +#include <math.h> + /* * Required for Testregexp*Cmd */ diff --git a/win/tclWinFile.c b/win/tclWinFile.c index 9c95e7a..54cf0cf 100644 --- a/win/tclWinFile.c +++ b/win/tclWinFile.c @@ -12,9 +12,6 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ -#ifndef _WIN64 -# define _USE_32BIT_TIME_T -#endif #include "tclWinInt.h" #include "tclFileSystem.h" #include <winioctl.h> diff --git a/win/tclWinPort.h b/win/tclWinPort.h index 2cfc715..493b824 100644 --- a/win/tclWinPort.h +++ b/win/tclWinPort.h @@ -14,6 +14,11 @@ #ifndef _TCLWINPORT #define _TCLWINPORT +#ifndef _WIN64 +/* See [Bug 2935503]: file mtime sets wrong time */ +# define _USE_32BIT_TIME_T +#endif + #define WIN32_LEAN_AND_MEAN #include <windows.h> #undef WIN32_LEAN_AND_MEAN |