summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-16 20:28:25 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-16 20:28:25 (GMT)
commit60a5d72908a8422d15452356892fe592c80dad33 (patch)
tree04a54459bcdba5db15f77eeb1d0aab24c9adccc4 /Modules/timemodule.c
parent98ef20d5e47c456552b87a911c1203571a06ad35 (diff)
downloadcpython-60a5d72908a8422d15452356892fe592c80dad33.zip
cpython-60a5d72908a8422d15452356892fe592c80dad33.tar.gz
cpython-60a5d72908a8422d15452356892fe592c80dad33.tar.bz2
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 13da2ff..7a2f02a8 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);