diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-05-23 11:28:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-05-23 11:28:18 (GMT) |
commit | 3d187689a8b892947e975457d3784bdc50b6ded0 (patch) | |
tree | a0fb8efdb6cc49539af0a7327c87ddff7231eaca | |
parent | 349564d2ad254c318eb5f8ac46ef2597621cd4ee (diff) | |
download | tcl-3d187689a8b892947e975457d3784bdc50b6ded0.zip tcl-3d187689a8b892947e975457d3784bdc50b6ded0.tar.gz tcl-3d187689a8b892947e975457d3784bdc50b6ded0.tar.bz2 |
When compiling Tcl with mingw32/wsl-4.0, make sure that no 64-bit time functions are used, which don't exist in Win95/98/ME.
-rw-r--r-- | compat/strftime.c | 3 | ||||
-rw-r--r-- | win/tclWinTime.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/compat/strftime.c b/compat/strftime.c index 68016ac..d3a1075 100644 --- a/compat/strftime.c +++ b/compat/strftime.c @@ -44,6 +44,9 @@ * SUCH DAMAGE. */ +#if defined(_WIN32) && !defined(_WIN64) +# define _USE_32BIT_TIME_T +#endif #include <time.h> #include <string.h> #include <locale.h> diff --git a/win/tclWinTime.c b/win/tclWinTime.c index 8fdc071..1e23459 100644 --- a/win/tclWinTime.c +++ b/win/tclWinTime.c @@ -10,6 +10,9 @@ * of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#if defined(_WIN32) && !defined(_WIN64) +# define _USE_32BIT_TIME_T +#endif #include "tclWinInt.h" #define SECSPERDAY (60L * 60L * 24L) |