]> granicus.if.org Git - python/commitdiff
"time_second" is apparently a #define on MacOSX. Renamed the (static)
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 17 Dec 2002 20:57:24 +0000 (20:57 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 17 Dec 2002 20:57:24 +0000 (20:57 +0000)
routine to py_time_second.

Modules/datetimemodule.c

index f2953a0aceeedba8a39bd69cc49397509697d0e3..5652cf43a58e55b7c76036c6b9cb3ebdc6b14815 100644 (file)
@@ -3314,7 +3314,7 @@ time_minute(PyDateTime_Time *self, void *unused)
 }
 
 static PyObject *
-time_second(PyDateTime_Time *self, void *unused)
+py_time_second(PyDateTime_Time *self, void *unused)
 {
        return PyInt_FromLong(TIME_GET_SECOND(self));
 }
@@ -3328,7 +3328,7 @@ time_microsecond(PyDateTime_Time *self, void *unused)
 static PyGetSetDef time_getset[] = {
        {"hour",        (getter)time_hour},
        {"minute",      (getter)time_minute},
-       {"second",      (getter)time_second},
+       {"second",      (getter)py_time_second},
        {"microsecond", (getter)time_microsecond},
        {NULL}
 };