diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 5d9f36403424..5b799c96729f 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -13,6 +13,9 @@ static int numfree = 0; #define PyCFunction_MAXFREELIST 256 #endif +/* undefine macro trampoline to PyCFunction_NewEx */ +#undef PyCFunction_New + PyObject * PyCFunction_New(PyMethodDef *ml, PyObject *self) {