diff --git a/Include/internal/pycore_unionobject.h b/Include/internal/pycore_unionobject.h index 7984c86d04c..9962f576103 100644 --- a/Include/internal/pycore_unionobject.h +++ b/Include/internal/pycore_unionobject.h @@ -8,9 +8,9 @@ extern "C" { # error "this header requires Py_BUILD_CORE define" #endif -CiAPI_DATA(PyTypeObject) _PyUnion_Type; +extern PyTypeObject _PyUnion_Type; #define _PyUnion_Check(op) Py_IS_TYPE(op, &_PyUnion_Type) -CiAPI_FUNC(PyObject *) _Py_union_type_or(PyObject *, PyObject *); +extern PyObject *_Py_union_type_or(PyObject *, PyObject *); #define _PyGenericAlias_Check(op) PyObject_TypeCheck(op, &Py_GenericAliasType) extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);