diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2014-10-10 07:16:28 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2014-10-10 07:16:28 +0200 |
commit | 49d9254c98ea435e04e4e3f516ee199a2039625e (patch) | |
tree | 8daaef269fd7bb140bbb5fb77b993a877f19048a | |
parent | 7ab8b329dfd10c23624370bf9228c23637009fc9 (diff) | |
download | cython-49d9254c98ea435e04e4e3f516ee199a2039625e.tar.gz |
remove compatibility #define for PyMethod_New() as it breaks the macro definition
--HG--
extra : transplant_source : V%1D%AF%BB%C2%E7l4%28%AE%8C%A9-%B0%B4%11%91%1B%FB%2C
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 4 |
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 |