summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-06-03 05:19:18 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-06-03 05:19:18 (GMT)
commit6b0e51a08c66e5b4da4c1cc1fe35f99efa102cdc (patch)
treed3ac7700e8c6f108a3b5c3bf5691b8a0d3e8edf5 /Modules/timemodule.c
parent3db5e7be1cf61756e89c40efcc1e24f00f33425b (diff)
downloadcpython-6b0e51a08c66e5b4da4c1cc1fe35f99efa102cdc.zip
cpython-6b0e51a08c66e5b4da4c1cc1fe35f99efa102cdc.tar.gz
cpython-6b0e51a08c66e5b4da4c1cc1fe35f99efa102cdc.tar.bz2
Issue #6183: Disables wcsftime on VC6.
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index d524ac5..d8db409 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -540,7 +540,7 @@ time_strftime(PyObject *self, PyObject *args)
fmt = PyBytes_AS_STRING(format);
#endif
-#ifdef MS_WINDOWS
+#if defined(MS_WINDOWS) && defined(HAVE_WCSFTIME)
/* check that the format string contains only valid directives */
for(outbuf = wcschr(fmt, L'%');
outbuf != NULL;