summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-09 11:38:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-06-09 11:38:54 (GMT)
commit8afdb9286632c44763fe2b168b72cc6606ac52d4 (patch)
treef3bfee9e1feace9b58f86f84a3dc3c7a83c1c028 /generic/tclInt.h
parentdb70eaab0c68492bd005fd53714af9996947cd9f (diff)
downloadtcl-8afdb9286632c44763fe2b168b72cc6606ac52d4.zip
tcl-8afdb9286632c44763fe2b168b72cc6606ac52d4.tar.gz
tcl-8afdb9286632c44763fe2b168b72cc6606ac52d4.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 fa91528..7ea37bb 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;