diff --git a/Include/cpython/funcobject.h b/Include/cpython/funcobject.h index 6f78f5868d0..c1a72c1e2a6 100644 --- a/Include/cpython/funcobject.h +++ b/Include/cpython/funcobject.h @@ -60,6 +60,10 @@ typedef struct { */ } PyFunctionObject; +// START META PATCH (undef COMMON_FIELDS to avoid leaking into C++ code) +#undef COMMON_FIELDS +// END META PATCH + PyAPI_DATA(PyTypeObject) PyFunction_Type; #define PyFunction_Check(op) Py_IS_TYPE((op), &PyFunction_Type)