diff --git a/Include/cpython/longintrepr.h b/Include/cpython/longintrepr.h index fb82f83dc50e42..247e8e4a868c78 100644 --- a/Include/cpython/longintrepr.h +++ b/Include/cpython/longintrepr.h @@ -89,6 +89,8 @@ struct _longobject { _PyLongValue long_value; }; +PyAPI_FUNC(PyLongObject *) _PyLong_New(Py_ssize_t); + /* Inline some internals for speed. These should be in pycore_long.h * if user code didn't need them inlined. */ diff --git a/Include/internal/pycore_long.h b/Include/internal/pycore_long.h index ddf79ab1d130e8..ab45fc09b30445 100644 --- a/Include/internal/pycore_long.h +++ b/Include/internal/pycore_long.h @@ -47,8 +47,6 @@ extern "C" { # error "_PY_LONG_DEFAULT_MAX_STR_DIGITS smaller than threshold." #endif -extern PyLongObject* _PyLong_New(Py_ssize_t); - // Return a copy of src. extern PyObject* _PyLong_Copy(PyLongObject *src);