summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2016-10-15 17:57:55 +0200
committerStefan Behnel <stefan_ml@behnel.de>2016-10-15 17:57:55 +0200
commit15a40e21bdc53f9421c0d90eb0b54dcf6c796e39 (patch)
tree7703b9c3d5f2c7b60d38743d92c15489464239cc /Cython/Utility/ModuleSetupCode.c
parent929101dac8b62bbc93f26426b1daea6eff53cb8f (diff)
downloadcython-15a40e21bdc53f9421c0d90eb0b54dcf6c796e39.tar.gz
avoid potential conflict with typedefed name in CPython
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c6
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) \