mirror of https://github.com/python/cpython.git
"time_second" is apparently a #define on MacOSX. Renamed the (static)
routine to py_time_second.
This commit is contained in:
parent
6cd77126b4
commit
51cd8a2d24
|
@ -3314,7 +3314,7 @@ time_minute(PyDateTime_Time *self, void *unused)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
time_second(PyDateTime_Time *self, void *unused)
|
py_time_second(PyDateTime_Time *self, void *unused)
|
||||||
{
|
{
|
||||||
return PyInt_FromLong(TIME_GET_SECOND(self));
|
return PyInt_FromLong(TIME_GET_SECOND(self));
|
||||||
}
|
}
|
||||||
|
@ -3328,7 +3328,7 @@ time_microsecond(PyDateTime_Time *self, void *unused)
|
||||||
static PyGetSetDef time_getset[] = {
|
static PyGetSetDef time_getset[] = {
|
||||||
{"hour", (getter)time_hour},
|
{"hour", (getter)time_hour},
|
||||||
{"minute", (getter)time_minute},
|
{"minute", (getter)time_minute},
|
||||||
{"second", (getter)time_second},
|
{"second", (getter)py_time_second},
|
||||||
{"microsecond", (getter)time_microsecond},
|
{"microsecond", (getter)time_microsecond},
|
||||||
{NULL}
|
{NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue