Subject: When compiling Tcl with mingw32/wsl-4.0, make sure that no 64-bit time functions are used, which don't exist in Win95/98/ME.

From: "jan.nijtmans" <[email-masked]>
Date: Thu, 23 May 2013 11:28:18 +0000

---
 compat/strftime.c | 3 +++
 win/tclWinTime.c  | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/compat/strftime.c b/compat/strftime.c
index 68016ac..d3a1075 100644
--- a/compat/strftime.c
+++ b/compat/strftime.c
@@ -44,6 +44,9 @@
  * SUCH DAMAGE.
  */
 
+#if defined(_WIN32) && !defined(_WIN64)
+#   define _USE_32BIT_TIME_T
+#endif
 #include <time.h>
 #include <string.h>
 #include <locale.h>
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 8fdc071..1e23459 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -10,6 +10,9 @@
  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  */
 
+#if defined(_WIN32) && !defined(_WIN64)
+#   define _USE_32BIT_TIME_T
+#endif
 #include "tclWinInt.h"
 
 #define SECSPERDAY (60L * 60L * 24L)
-- 
cgit v0.12