From 4de2924dabea037919fc7a80f94dbe233c68c46e Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Wed, 26 Dec 2012 23:08:54 +0200 Subject: [PATCH] Fix compilation error for #15422 --- Objects/methodobject.c | 3 +++ 1 file changed, 3 insertions(+) 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) {