summaryrefslogtreecommitdiff
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-16 20:28:25 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-10-16 20:28:25 +0000
commitac363519d6e02aebb8a8c3e80dd69ea5a0b9f863 (patch)
tree346ca4457db1df2f8831274db478db5cf52d550d /Modules/timemodule.c
parentb7f1f42a1638f3c4ae8c5ebe2f3262cc20e5b43c (diff)
downloadcpython-ac363519d6e02aebb8a8c3e80dd69ea5a0b9f863.tar.gz
Patch #623780: Replace obsolete struct macros.
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 13da2ffe24..7a2f02a875 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -653,7 +653,7 @@ inittime(void)
PyModule_AddObject(m, "tzname",
Py_BuildValue("(zz)", tzname[0], tzname[1]));
#else /* !HAVE_TZNAME || __GLIBC__ || __CYGWIN__*/
-#ifdef HAVE_TM_ZONE
+#ifdef HAVE_STRUCT_TM_TM_ZONE
{
#define YEAR ((time_t)((365 * 24 + 6) * 3600))
time_t t;
@@ -702,7 +702,7 @@ inittime(void)
PyModule_AddIntConstant(m, "daylight", 0);
PyModule_AddObject(m, "tzname", Py_BuildValue("(zz)", "", ""));
#endif /* macintosh */
-#endif /* HAVE_TM_ZONE */
+#endif /* HAVE_STRUCT_TM_TM_ZONE */
#ifdef __CYGWIN__
tzset();
PyModule_AddIntConstant(m, "timezone", _timezone);