summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-27 07:54:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-27 07:54:40 (GMT)
commit17ae07e6eb2eec4417f3c077d0e81df90c49fde8 (patch)
treee2b1ca07f02e380003ea8d6e48b1e4ddeca3836b /generic/tcl.h
parent5fd3911a6da4d4cd6429d1179eb524b27d581db3 (diff)
parenta7fbbf49700d95954ce9bd3e780ae56f9e3b7421 (diff)
downloadtcl-17ae07e6eb2eec4417f3c077d0e81df90c49fde8.zip
tcl-17ae07e6eb2eec4417f3c077d0e81df90c49fde8.tar.gz
tcl-17ae07e6eb2eec4417f3c077d0e81df90c49fde8.tar.bz2
fix for [Bug 3288345]: use _stat32i64 for CYGWIN too
fix a few more gcc warnings
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 39db170..53dce4b 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -391,8 +391,12 @@ typedef struct _stat32i64 Tcl_StatBuf;
# elif defined(__GNUC__)
# define TCL_WIDE_INT_TYPE long long
# define TCL_LL_MODIFIER "ll"
+# if defined(__WIN32__)
+typedef struct _stat32i64 Tcl_StatBuf;
+# else
typedef struct stat Tcl_StatBuf;
-# else /* __WIN32__ */
+# endif
+# else /* ! __WIN32__ && ! __GNUC__ */
/*
* Don't know what platform it is and configure hasn't discovered what is
* going on for us. Try to guess...