summaryrefslogtreecommitdiffstats
path: root/compat/strftime.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-05-23 11:28:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-05-23 11:28:18 (GMT)
commit3d187689a8b892947e975457d3784bdc50b6ded0 (patch)
treea0fb8efdb6cc49539af0a7327c87ddff7231eaca /compat/strftime.c
parent349564d2ad254c318eb5f8ac46ef2597621cd4ee (diff)
downloadtcl-3d187689a8b892947e975457d3784bdc50b6ded0.zip
tcl-3d187689a8b892947e975457d3784bdc50b6ded0.tar.gz
tcl-3d187689a8b892947e975457d3784bdc50b6ded0.tar.bz2
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.
Diffstat (limited to 'compat/strftime.c')
-rw-r--r--compat/strftime.c3
1 files changed, 3 insertions, 0 deletions
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>