diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-01-21 08:31:55 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-01-21 08:31:55 (GMT) |
commit | 90f7079c2b9adf22d6c3cbb162df3fc985707528 (patch) | |
tree | c04b63e479be3797eb3ac49c72e6158a8827ff84 /generic | |
parent | 575c4b7e017b102778b8be9e2f6211cfeaff731e (diff) | |
parent | 4aed2bc2cd16fef4ffe748ec35725686038a4fbb (diff) | |
download | tcl-90f7079c2b9adf22d6c3cbb162df3fc985707528.zip tcl-90f7079c2b9adf22d6c3cbb162df3fc985707528.tar.gz tcl-90f7079c2b9adf22d6c3cbb162df3fc985707528.tar.bz2 |
Bug-3474726 minGW Tcl_StatBuf not defined correctly in tcl.h
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tcl.h | 2 | ||||
-rw-r--r-- | generic/tclFCmd.c | 5 | ||||
-rw-r--r-- | generic/tclTest.c | 5 |
3 files changed, 11 insertions, 1 deletions
diff --git a/generic/tcl.h b/generic/tcl.h index 1bc3a89..9fbe378 100644 --- a/generic/tcl.h +++ b/generic/tcl.h @@ -381,7 +381,7 @@ typedef struct stati64 Tcl_StatBuf; # else /* __BORLANDC__ */ # if defined(_WIN64) typedef struct __stat64 Tcl_StatBuf; -# elif (defined(_MSC_VER) && (_MSC_VER < 1400)) +# elif (defined(_MSC_VER) && (_MSC_VER < 1400)) || defined(_USE_32BIT_TIME_T) typedef struct _stati64 Tcl_StatBuf; # else typedef struct _stat32i64 Tcl_StatBuf; diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c index 048fa57..0d90094 100644 --- a/generic/tclFCmd.c +++ b/generic/tclFCmd.c @@ -10,6 +10,11 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#ifndef _WIN64 +/* See [Bug 2935503]: file mtime sets wrong time */ +# define _USE_32BIT_TIME_T +#endif + #include "tclInt.h" #include "tclFileSystem.h" diff --git a/generic/tclTest.c b/generic/tclTest.c index cd23319..37ec751 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -15,6 +15,11 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#ifndef _WIN64 +/* See [Bug 2935503]: file mtime sets wrong time */ +# define _USE_32BIT_TIME_T +#endif + #undef STATIC_BUILD #ifndef USE_TCL_STUBS # define USE_TCL_STUBS |