diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-17 20:57:24 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-17 20:57:24 (GMT) |
commit | 51cd8a2d24f972cad2703a9cf70e1a63b83f76c7 (patch) | |
tree | 90722515494d1a17811f95cb4cd45da90beb0d74 /Modules/datetimemodule.c | |
parent | 6cd77126b423cc8113bce4f2fe35b07cf6521c46 (diff) | |
download | cpython-51cd8a2d24f972cad2703a9cf70e1a63b83f76c7.zip cpython-51cd8a2d24f972cad2703a9cf70e1a63b83f76c7.tar.gz cpython-51cd8a2d24f972cad2703a9cf70e1a63b83f76c7.tar.bz2 |
"time_second" is apparently a #define on MacOSX. Renamed the (static)
routine to py_time_second.
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r-- | Modules/datetimemodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index f2953a0..5652cf4 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -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} }; |