diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-21 15:56:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-21 15:56:52 (GMT) |
commit | b2cabbf79cb3c192463cf41f599a46247fd7006d (patch) | |
tree | 9d27696d89c069b1bc30d0e6478e69a19418074c /generic | |
parent | ea1fdc511d6bdd7ceee5b77dda8014d70a68c46a (diff) | |
parent | 14ab9ebc5587ac72f4563e25cfbb4da049802c14 (diff) | |
download | tcl-b2cabbf79cb3c192463cf41f599a46247fd7006d.zip tcl-b2cabbf79cb3c192463cf41f599a46247fd7006d.tar.gz tcl-b2cabbf79cb3c192463cf41f599a46247fd7006d.tar.bz2 |
Fix [8c025f8f0d]: Run-time error on tcl 8.6.11 32 bits (from cross-compile Centos6.9 64-bits)
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tcl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index 85594c1..64dd8bae 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -366,6 +366,15 @@ typedef long LONG; # undef HAVE_STRUCT_STAT64 #endif /* __APPLE__ */ +/* Cross-compiling 32-bit on a 64-bit platform? Then our + * configure script does the wrong thing. Correct that here. + */ +#if defined(__GNUC__) && !defined(_WIN32) && !defined(__LP64__) +# undef TCL_WIDE_INT_IS_LONG +# undef TCL_WIDE_INT_TYPE +# define TCL_WIDE_INT_TYPE long long +#endif + /* * Define Tcl_WideInt to be a type that is (at least) 64-bits wide, and define * Tcl_WideUInt to be the unsigned variant of that type (assuming that where |