diff options
author | dgp <dgp@users.sourceforge.net> | 2017-02-16 18:48:56 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-02-16 18:48:56 (GMT) |
commit | 674ed242bc26f2a7d7e773dfd456fd95164f8bac (patch) | |
tree | 9940afb84ebd36d050d00448f4c79363c87ecac5 /generic/tcl.h | |
parent | 44a6a03d757bee64987fa31d866bf56b2f2e143c (diff) | |
parent | 3b5e7e9792b9b34111146557a3353756711b8133 (diff) | |
download | tcl-674ed242bc26f2a7d7e773dfd456fd95164f8bac.zip tcl-674ed242bc26f2a7d7e773dfd456fd95164f8bac.tar.gz tcl-674ed242bc26f2a7d7e773dfd456fd95164f8bac.tar.bz2 |
merge trunk
Diffstat (limited to 'generic/tcl.h')
-rw-r--r-- | generic/tcl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index c0cee27..d678229 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -1147,8 +1147,13 @@ typedef struct Tcl_DString { #define TCL_LINK_SHORT 8 #define TCL_LINK_USHORT 9 #define TCL_LINK_UINT 10 +#if defined(TCL_WIDE_INT_IS_LONG) || defined(_WIN32) || defined(__CYGWIN__) +#define TCL_LINK_LONG ((sizeof(long) != sizeof(int)) ? TCL_LINK_WIDE_INT : TCL_LINK_INT) +#define TCL_LINK_ULONG ((sizeof(long) != sizeof(int)) ? TCL_LINK_WIDE_UINT : TCL_LINK_UINT) +#else #define TCL_LINK_LONG 11 #define TCL_LINK_ULONG 12 +#endif #define TCL_LINK_FLOAT 13 #define TCL_LINK_WIDE_UINT 14 #define TCL_LINK_READ_ONLY 0x80 |