Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51cd8a2

Browse files
committed
"time_second" is apparently a #define on MacOSX. Renamed the (static)
routine to py_time_second.
1 parent 6cd7712 commit 51cd8a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/datetimemodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,7 +3314,7 @@ time_minute(PyDateTime_Time *self, void *unused)
33143314
}
33153315

33163316
static PyObject *
3317-
time_second(PyDateTime_Time *self, void *unused)
3317+
py_time_second(PyDateTime_Time *self, void *unused)
33183318
{
33193319
return PyInt_FromLong(TIME_GET_SECOND(self));
33203320
}
@@ -3328,7 +3328,7 @@ time_microsecond(PyDateTime_Time *self, void *unused)
33283328
static PyGetSetDef time_getset[] = {
33293329
{"hour", (getter)time_hour},
33303330
{"minute", (getter)time_minute},
3331-
{"second", (getter)time_second},
3331+
{"second", (getter)py_time_second},
33323332
{"microsecond", (getter)time_microsecond},
33333333
{NULL}
33343334
};

0 commit comments

Comments
 (0)