diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-10-15 17:57:55 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-10-15 17:57:55 +0200 |
commit | 15a40e21bdc53f9421c0d90eb0b54dcf6c796e39 (patch) | |
tree | 7703b9c3d5f2c7b60d38743d92c15489464239cc /Cython/Utility/ModuleSetupCode.c | |
parent | 929101dac8b62bbc93f26426b1daea6eff53cb8f (diff) | |
download | cython-15a40e21bdc53f9421c0d90eb0b54dcf6c796e39.tar.gz |
avoid potential conflict with typedefed name in CPython
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 9da087220..503d09a91 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -196,8 +196,10 @@ #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); + typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args, + Py_ssize_t nargs, PyObject *kwnames); +#else + #define __Pyx_PyCFunctionFast _PyCFunctionFast #endif #if CYTHON_FAST_PYCCALL #define __Pyx_PyFastCFunction_Check(func) \ |