summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-11 07:58:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-11 07:58:01 (GMT)
commita9614d87b805cb106c4876c73858300e3c4359a3 (patch)
tree8c818c6541faf545fff407bc6b6633c6f8329bf9 /win/tclWinPort.h
parent68d9ec32251e4fef72df8960441ff9784a7b8381 (diff)
downloadtcl-a9614d87b805cb106c4876c73858300e3c4359a3.zip
tcl-a9614d87b805cb106c4876c73858300e3c4359a3.tar.gz
tcl-a9614d87b805cb106c4876c73858300e3c4359a3.tar.bz2
Improve compatibility detection for <time.h> and <sys/stat.h>:
- Move <time.h> before other includes on Windows, so we are sure the time_t definition being checked doesn't come from <sys/types.h>. - Padding at the end of Tcl_StatBuf doesn't influcence binary compatibility, so relax panic check accordingly.
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index f58014c..987d45b 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -51,6 +51,7 @@ typedef DWORD_PTR * PDWORD_PTR;
*---------------------------------------------------------------------------
*/
+#include <time.h>
#include <io.h>
#include <stdio.h>
#include <stdlib.h>
@@ -85,8 +86,6 @@ typedef DWORD_PTR * PDWORD_PTR;
# endif /* __BORLANDC__ */
#endif /* __MWERKS__ */
-#include <time.h>
-
/*
* Define EINPROGRESS in terms of WSAEINPROGRESS.
*/