PyAPI_FUNC(time_t) _PyLong_AsTime_t(
PyObject *obj);
-/* Round to nearest with ties going to nearest even integer
- (_PyTime_ROUND_HALF_EVEN) */
-PyAPI_FUNC(double) _PyTime_RoundHalfEven(
- double x);
-
/* Convert a number of seconds, int or float, to time_t. */
PyAPI_FUNC(int) _PyTime_ObjectToTime_t(
PyObject *obj,
#endif
}
-double
+/* Round to nearest with ties going to nearest even integer
+ (_PyTime_ROUND_HALF_EVEN) */
+static double
_PyTime_RoundHalfEven(double x)
{
double rounded = round(x);