summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-02 14:56:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-02 14:56:20 (GMT)
commitbeea8bd8239020a39d28b48993623c6f81fb4c81 (patch)
tree27f6dc4d8e6741f8bbd53cfb49b281e448a30395
parent03462e2c1dfc9da26f049ee17a3001df257442e4 (diff)
parentdb70eaab0c68492bd005fd53714af9996947cd9f (diff)
downloadtcl-beea8bd8239020a39d28b48993623c6f81fb4c81.zip
tcl-beea8bd8239020a39d28b48993623c6f81fb4c81.tar.gz
tcl-beea8bd8239020a39d28b48993623c6f81fb4c81.tar.bz2
Fix [e14c77b845]: Compilation error over typedef.
-rw-r--r--generic/tclInt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 1dab0cb..6870f61 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -48,7 +48,9 @@
#else
#include <string.h>
#endif
-#ifdef STDC_HEADERS
+#if defined(_WIN32)
+#include <crtdefs.h>
+#elif defined(STDC_HEADERS)
#include <stddef.h>
#else
typedef int ptrdiff_t;