summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index cb781a6..be39d2f 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -664,10 +664,11 @@ typedef union Tcl_ObjInternalRep { /* The internal representation: */
* or both.
*/
#if TCL_MAJOR_VERSION > 8
-# define Tcl_Size size_t
+typedef size_t Tcl_Size;
#else
-# define Tcl_Size int
+typedef int Tcl_Size;
#endif
+#define TCL_SIZE_SMAX ((((Tcl_Size) 1) << ((8*sizeof(Tcl_Size)) - 1)) - 1)
typedef struct Tcl_Obj {