diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-10 21:02:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-10 21:02:58 (GMT) |
commit | 0ac369da08268513bd59ff640a4effd77027a012 (patch) | |
tree | 30edefc336e6c808c0c3967fc0c1790730defb60 /win | |
parent | 5c69fce733edf887bb423858dcfc950581ea3427 (diff) | |
download | tcl-0ac369da08268513bd59ff640a4effd77027a012.zip tcl-0ac369da08268513bd59ff640a4effd77027a012.tar.gz tcl-0ac369da08268513bd59ff640a4effd77027a012.tar.bz2 |
little tweaks, makeing it possible to use either _USE_64BIT_TIME_T or __MINGW_USE_VC2005_COMPAT interchangably.
Put some more remarks, making it more clear what the effect of this is.
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinPort.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h index dce5557..b14aa6b 100644 --- a/win/tclWinPort.h +++ b/win/tclWinPort.h @@ -14,16 +14,13 @@ #ifndef _TCLWINPORT #define _TCLWINPORT -#if !defined(_WIN64) && !defined(_USE_32BIT_TIME_T) && !defined(__MINGW_USE_VC2005_COMPAT) - /* define _USE_64BIT_TIME_T (or make/configure option time64bit) to force 64-bit time_t */ -# if defined(_USE_64BIT_TIME_T) -# if defined(__MINGW32__) -# define __MINGW_USE_VC2005_COMPAT -# endif -# else - /* See [Bug 3354324]: file mtime sets wrong time */ -# define _USE_32BIT_TIME_T -# endif +/* define _USE_64BIT_TIME_T (or make/configure option time64bit) to force 64-bit time_t */ +#if defined(_USE_64BIT_TIME_T) +#define __MINGW_USE_VC2005_COMPAT +#endif +#if !defined(_WIN64) && !defined(__MINGW_USE_VC2005_COMPAT) +/* See [Bug 3354324]: file mtime sets wrong time */ +# define _USE_32BIT_TIME_T #endif #define WIN32_LEAN_AND_MEAN |