From 499d98628a8a929ed065bf38ee4ec6405145e092 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 10 Oct 2014 07:16:28 +0200 Subject: remove compatibility #define for PyMethod_New() as it breaks the macro definition --- Cython/Utility/ModuleSetupCode.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Cython/Utility/ModuleSetupCode.c') diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 47fc89216..e73574f26 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -172,10 +172,6 @@ #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) - #ifndef PyMethod_New - /* for backwards compatibility only, but PyPy redefines PyMethod_New unconditionally */ - #define PyMethod_New(func, self, klass) __Pyx_PyMethod_New(func, self, klass) - #endif #else #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass) #endif -- cgit v1.2.1