summaryrefslogtreecommitdiff
path: root/Objects/methodobject.c
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-26 23:08:54 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-26 23:08:54 +0200
commit4de2924dabea037919fc7a80f94dbe233c68c46e (patch)
treeaa13907d694587482ca4182f0f872b7314135db7 /Objects/methodobject.c
parent192b10b371e3e72b121d8ffda60b43580b49d506 (diff)
downloadcpython-git-4de2924dabea037919fc7a80f94dbe233c68c46e.tar.gz
Fix compilation error for #15422
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r--Objects/methodobject.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index 5d9f364034..5b799c9672 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)
{