summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-11-22 08:30:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-11-22 08:30:46 (GMT)
commitc30ddb5b116b0c98472ae9f6a1b98647d623792b (patch)
tree7c99edddbdf056e016bea0c4f2c08ffa130f0fea
parent867c43d532baf487d1e270fd7e69a9e78698a740 (diff)
parent5a7a628375d4ce2645419adcc61acc3c0bb19ab6 (diff)
downloadtcl-c30ddb5b116b0c98472ae9f6a1b98647d623792b.zip
tcl-c30ddb5b116b0c98472ae9f6a1b98647d623792b.tar.gz
tcl-c30ddb5b116b0c98472ae9f6a1b98647d623792b.tar.bz2
[Bug 2935503] Windows: file mtime sets wrong time (VS2005+ only)
-rw-r--r--ChangeLog6
-rw-r--r--generic/tclTest.c4
-rw-r--r--win/tclWinFile.c3
-rw-r--r--win/tclWinPort.h5
4 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index c11a0ee..f439c76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-20 Joe Mistachkin <joe@mistachkin.com>
* tests/thread.test: Remove unnecessary [after] calls from the thread
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 86941c6..cd23319 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -15,14 +15,14 @@
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
-#include <math.h>
-
#undef STATIC_BUILD
#ifndef USE_TCL_STUBS
# define USE_TCL_STUBS
#endif
#include "tclInt.h"
#include "tclOO.h"
+#include <math.h>
+
/*
* Required for Testregexp*Cmd
*/
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 80bf799..08e5b42 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 9b19b23..6e9f2ad 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
+
/*
* We must specify the lower version we intend to support.
*