summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-10-10 07:16:28 +0200
committerStefan Behnel <stefan_ml@behnel.de>2014-10-10 07:16:28 +0200
commit499d98628a8a929ed065bf38ee4ec6405145e092 (patch)
treeece1515b481a0c4441ddf267b38c56bed82980c4 /Cython/Utility/ModuleSetupCode.c
parent9635e4f81750b4c4a5a50b0205cb6f13b5f22e1d (diff)
downloadcython-499d98628a8a929ed065bf38ee4ec6405145e092.tar.gz
remove compatibility #define for PyMethod_New() as it breaks the macro definition
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c4
1 files changed, 0 insertions, 4 deletions
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