diff --git a/Include/cpython/object.h b/Include/cpython/object.h index 0e5b6acb43b4161..49101c187568607 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -377,11 +377,6 @@ PyAPI_FUNC(PyObject *) _PyObject_FunctionStr(PyObject *); #endif -/* Maps Py_LT to Py_GT, ..., Py_GE to Py_LE. - * Defined in object.c. - */ -PyAPI_DATA(int) _Py_SwappedOp[]; - PyAPI_FUNC(void) _PyDebugAllocatorStats(FILE *out, const char *block_name, int num_blocks, size_t sizeof_block); diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h index 90588daa64cc3be..e9b29bd3049f09d 100644 --- a/Include/internal/pycore_object.h +++ b/Include/internal/pycore_object.h @@ -442,6 +442,9 @@ extern PyObject* _PyCFunctionWithKeywords_TrampolineCall( PyAPI_DATA(PyTypeObject) _PyNone_Type; PyAPI_DATA(PyTypeObject) _PyNotImplemented_Type; +/* Maps Py_LT to Py_GT, ..., Py_GE to Py_LE. Defined in Objects/object.c. */ +extern int _Py_SwappedOp[]; + #ifdef __cplusplus } #endif