Issue #6183: Disables wcsftime on VC6.
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 @@
 	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;