diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-10-15 15:28:25 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-10-15 15:28:25 +0200 |
commit | 609ff3d8949aee643fb9de40481058573251161c (patch) | |
tree | 6bd1f43d244850dda0d74370e0c33dbd807617e7 /Cython/Utility/ModuleSetupCode.c | |
parent | 7ead0303e67524b8c38ec2a4d7bfc486fcbe0f64 (diff) | |
download | cython-609ff3d8949aee643fb9de40481058573251161c.tar.gz |
correctly handle PyCFunctions with METH_FASTCALL signature in Py3.6
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 3e6521f8e..80c946b71 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -188,6 +188,12 @@ #ifndef Py_TPFLAGS_HAVE_FINALIZE #define Py_TPFLAGS_HAVE_FINALIZE 0 #endif +#ifndef METH_FASTCALL + // new in CPython 3.6 + #define METH_FASTCALL 0x80 + typedef PyObject *(*_PyCFunctionFast) (PyObject *self, PyObject **args, + Py_ssize_t nargs, PyObject *kwnames); +#endif /* new Py3.3 unicode type (PEP 393) */ #if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND) |