summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorgriffin <briang42@easystreet.net>2022-10-22 21:13:54 (GMT)
committergriffin <briang42@easystreet.net>2022-10-22 21:13:54 (GMT)
commite38c5076fee189e91ac4eef095593595f9a8ccca (patch)
tree70481c5ce91c714524b22badd982e7bc0e6b3394 /win
parent6f1b4d55a4b5bf7c48722f8b287275d0464a8ef3 (diff)
parent500e1529f18c04152dbf1a395c6c7a61f08f63b3 (diff)
downloadtcl-e38c5076fee189e91ac4eef095593595f9a8ccca.zip
tcl-e38c5076fee189e91ac4eef095593595f9a8ccca.tar.gz
tcl-e38c5076fee189e91ac4eef095593595f9a8ccca.tar.bz2
Sync with core-8-branch
Diffstat (limited to 'win')
-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 */