summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
authorkjnash <k.j.nash@usa.net>2022-10-26 12:35:18 (GMT)
committerkjnash <k.j.nash@usa.net>2022-10-26 12:35:18 (GMT)
commit1e0a98c9aa064a2472cb7a62b51b86252528782b (patch)
treee8abd26b5fc9a3e83614c3d3a01290eb551939f4 /win/tclWinTime.c
parent2ecf92f50b4fad000f8cf4b368ce47c6035bdf4c (diff)
parent42b1c587058185cf982966c733806b5d6dd8625d (diff)
downloadtcl-1e0a98c9aa064a2472cb7a62b51b86252528782b.zip
tcl-1e0a98c9aa064a2472cb7a62b51b86252528782b.tar.gz
tcl-1e0a98c9aa064a2472cb7a62b51b86252528782b.tar.bz2
Merge 8.7
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index a7e8474..e8401a5 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -791,14 +791,14 @@ TclpGetDate(
{
struct tm *tmPtr;
time_t time;
-#if defined(_WIN64) || (defined(_USE_64BIT_TIME_T) || (defined(_MSC_VER) && _MSC_VER < 1400))
+#if defined(_WIN64) || defined(_USE_64BIT_TIME_T)
# define t2 *t /* no need to cripple time to 32-bit */
#else
time_t t2 = *(__time32_t *) t;
#endif
if (!useGMT) {
-#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+#if defined(_MSC_VER)
# undef timezone /* prevent conflict with timezone() function */
long timezone = 0;
#endif
@@ -815,7 +815,7 @@ TclpGetDate(
return TclpLocaltime(&t2);
}
-#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+#if defined(_MSC_VER)
_get_timezone(&timezone);
#endif
@@ -1451,11 +1451,11 @@ TclpGmtime(
* Posix gmtime_r function.
*/
-#if defined(_WIN64) || defined(_USE_64BIT_TIME_T) || (defined(_MSC_VER) && _MSC_VER < 1400)
+#if defined(_WIN64) || defined(_USE_64BIT_TIME_T)
return gmtime(timePtr);
#else
return _gmtime32((const __time32_t *) timePtr);
-#endif /* _WIN64 || _USE_64BIT_TIME_T || _MSC_VER < 1400 */
+#endif /* _WIN64 || _USE_64BIT_TIME_T */
}
/*
@@ -1486,11 +1486,11 @@ TclpLocaltime(
* provide a Posix localtime_r function.
*/
-#if defined(_WIN64) || defined(_USE_64BIT_TIME_T) || (defined(_MSC_VER) && _MSC_VER < 1400)
+#if defined(_WIN64) || defined(_USE_64BIT_TIME_T)
return localtime(timePtr);
#else
return _localtime32((const __time32_t *) timePtr);
-#endif /* _WIN64 || _USE_64BIT_TIME_T || _MSC_VER < 1400 */
+#endif /* _WIN64 || _USE_64BIT_TIME_T */
}
#endif /* TCL_NO_DEPRECATED */