summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/tclWinFile.c3
-rw-r--r--win/tclWinPort.h5
2 files changed, 5 insertions, 3 deletions
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.
*