diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2011-04-18 08:22:16 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2011-04-18 08:22:16 (GMT) |
commit | be49ba9beac70f6e9e1b38aa9257a15b5a0a97f0 (patch) | |
tree | e6a93d747c0938c5bb1ad04b9b11a221a7a969d4 /generic/tcl.h | |
parent | 6a02a0381147b71bef99450eaf3e2ff326f5d0d6 (diff) | |
parent | 1a0eb92d704ad2347c1eba9e5137b6cdf2a1d7e3 (diff) | |
download | tcl-be49ba9beac70f6e9e1b38aa9257a15b5a0a97f0.zip tcl-be49ba9beac70f6e9e1b38aa9257a15b5a0a97f0.tar.gz tcl-be49ba9beac70f6e9e1b38aa9257a15b5a0a97f0.tar.bz2 |
fix for [Bug 3288345]: Wrong Tcl_StatBuf used on MinGW
FossilOrigin-Name: 4f729efe4c9b81d2ced072cd3e24116b82057092
Diffstat (limited to 'generic/tcl.h')
-rw-r--r-- | generic/tcl.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index 45da4f1..61e9a8a 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -352,27 +352,23 @@ typedef long LONG; */ #if !defined(TCL_WIDE_INT_TYPE)&&!defined(TCL_WIDE_INT_IS_LONG) -# if defined(__GNUC__) -# define TCL_WIDE_INT_TYPE long long -# if defined(__WIN32__) && !defined(__CYGWIN__) -# define TCL_LL_MODIFIER "I64" -# else -# define TCL_LL_MODIFIER "ll" -# endif -typedef struct stat Tcl_StatBuf; -# elif defined(__WIN32__) +# if defined(__WIN32__) # define TCL_WIDE_INT_TYPE __int64 # ifdef __BORLANDC__ typedef struct stati64 Tcl_StatBuf; # define TCL_LL_MODIFIER "L" # else /* __BORLANDC__ */ -# if _MSC_VER < 1400 || !defined(_M_IX86) +# if (defined(_MSC_VER) && (_MSC_VER < 1400)) || !defined(_M_IX86) || defined(__GNUC__) typedef struct _stati64 Tcl_StatBuf; # else typedef struct _stat64 Tcl_StatBuf; # endif /* _MSC_VER < 1400 */ # define TCL_LL_MODIFIER "I64" # endif /* __BORLANDC__ */ +# elif defined(__GNUC__) +# define TCL_WIDE_INT_TYPE long long +# define TCL_LL_MODIFIER "ll" +typedef struct stat Tcl_StatBuf; # else /* __WIN32__ */ /* * Don't know what platform it is and configure hasn't discovered what is |