summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-09 11:41:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-09 11:41:31 (GMT)
commit1a7917d436c68f8263c2aaf25b7157202ea55866 (patch)
treef52b50c34cb2800c0234230800e8ed90302d3797 /generic/tclInt.h
parentbeea8bd8239020a39d28b48993623c6f81fb4c81 (diff)
parent8afdb9286632c44763fe2b168b72cc6606ac52d4 (diff)
downloadtcl-1a7917d436c68f8263c2aaf25b7157202ea55866.zip
tcl-1a7917d436c68f8263c2aaf25b7157202ea55866.tar.gz
tcl-1a7917d436c68f8263c2aaf25b7157202ea55866.tar.bz2
Fix [e14c77b845] for MSVC6: Compilation error over typedef
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 6870f61..49a299c 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -48,9 +48,8 @@
#else
#include <string.h>
#endif
-#if defined(_WIN32)
-#include <crtdefs.h>
-#elif defined(STDC_HEADERS)
+#if defined(STDC_HEADERS) || defined(__STDC__) || defined(__C99__FUNC__) \
+ || defined(__cplusplus) || defined(_MSC_VER)
#include <stddef.h>
#else
typedef int ptrdiff_t;