summaryrefslogtreecommitdiffstats
path: root/generic/tkMain.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-08-05 11:59:27 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-08-05 11:59:27 (GMT)
commit2debbc4a39186e76ec36dacd1ba2b45394e07c45 (patch)
tree59e33c6faf225f8c7aed8103109f01db65b19454 /generic/tkMain.c
parent5fe7beec61c45c43821418074a0c7a6804a710c7 (diff)
downloadtk-2debbc4a39186e76ec36dacd1ba2b45394e07c45.zip
tk-2debbc4a39186e76ec36dacd1ba2b45394e07c45.tar.gz
tk-2debbc4a39186e76ec36dacd1ba2b45394e07c45.tar.bz2
fix broken build on Visual Studio 9+10
Diffstat (limited to 'generic/tkMain.c')
-rw-r--r--generic/tkMain.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c
index 9fd2f69..fddad3a 100644
--- a/generic/tkMain.c
+++ b/generic/tkMain.c
@@ -29,10 +29,15 @@
# endif
#endif
+#ifndef _WIN64
+/* See [Bug 2935503]: file mtime sets wrong time */
+# define _USE_32BIT_TIME_T
+#endif
+
+#include "tkInt.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
-#include "tkInt.h"
#ifdef NO_STDLIB_H
# include "../compat/stdlib.h"
#else