We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b77a578 commit e178448Copy full SHA for e178448
Modules/timemodule.c
@@ -783,7 +783,7 @@ time_strftime(PyObject *module, PyObject *args)
783
return NULL;
784
}
785
786
-#if defined(_MSC_VER) || (defined(__sun) && defined(__SVR4)) || defined(_AIX) || defined(__VXWORKS__)
+#if defined(MS_WINDOWS) || (defined(__sun) && defined(__SVR4)) || defined(_AIX) || defined(__VXWORKS__)
787
if (buf.tm_year + 1900 < 1 || 9999 < buf.tm_year + 1900) {
788
PyErr_SetString(PyExc_ValueError,
789
"strftime() requires year in [1; 9999]");
0 commit comments