Overview
| Artifact ID: | 8c9d06f622d3847b75f74d1db2af48e40f21076b |
|---|---|
| Ticket: | 1551762fffffffffffffffffffffffffffffffff |
| Date: | 2006-09-04 12:17:19 |
| User: | nobody |
| Artifact Attached: | df87126dca76127487496b7ab1b7ce7c9e9e57f2 |
| Filename: | cygwin-tcl-8_5a5.patch.txt |
| Description: | cygwin 64 bit integer math fix |
Content:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26Index: generic/tcl.h =================================================================== RCS file: /cvsroot/tcl/tcl/generic/tcl.h,v retrieving revision 1.214 diff -u -3 -p -r1.214 tcl.h --- generic/tcl.h 18 Aug 2006 07:45:31 -0000 1.214 +++ generic/tcl.h 4 Sep 2006 05:01:23 -0000 @@ -187,7 +187,7 @@ extern "C" { * MSVCRT. */ -#if (defined(__WIN32__) && (defined(_MSC_VER) || (__BORLANDC__ >= 0x0550) || defined(__LCC__) || defined(__WATCOMC__) || (defined(__GNUC__) && defined(__declspec)))) +#if (defined(__WIN32__) && !defined(__CYGWIN__) && (defined(_MSC_VER) || (__BORLANDC__ >= 0x0550) || defined(__LCC__) || defined(__WATCOMC__) || (defined(__GNUC__) && defined(__declspec)))) # define HAVE_DECLSPEC 1 #endif @@ -382,6 +382,9 @@ typedef long LONG; # if defined(__WIN32__) && !defined(__CYGWIN__) # define TCL_LL_MODIFIER "I64" # define TCL_LL_MODIFIER_SIZE 3 +# elif defined(__CYGWIN__) +# define TCL_LL_MODIFIER "ll" +# define TCL_LL_MODIFIER_SIZE 2 # else # define TCL_LL_MODIFIER "L" # define TCL_LL_MODIFIER_SIZE 1