diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-06-19 16:15:37 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-06-19 16:15:37 +0200 |
commit | 61a4f0991efaef5f9e92016f67a720ea213ee9ef (patch) | |
tree | 130d5f22b93d67301f8efad1265a776032f601e2 | |
parent | 51e5f4335235dadd9d126842e14e7988966ee357 (diff) | |
download | cython-61a4f0991efaef5f9e92016f67a720ea213ee9ef.tar.gz |
Fix definition of "__Pyx_CyFunction_USED", which should only be #defined and not have a value.
-rw-r--r-- | Cython/Utility/CythonFunction.c | 2 | ||||
-rw-r--r-- | Cython/Utility/ObjectHandling.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Utility/CythonFunction.c b/Cython/Utility/CythonFunction.c index 6c4ddd6ce..74aee2d49 100644 --- a/Cython/Utility/CythonFunction.c +++ b/Cython/Utility/CythonFunction.c @@ -1,7 +1,7 @@ //////////////////// CythonFunctionShared.proto //////////////////// -#define __Pyx_CyFunction_USED 1 +#define __Pyx_CyFunction_USED #define __Pyx_CYFUNCTION_STATICMETHOD 0x01 #define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 diff --git a/Cython/Utility/ObjectHandling.c b/Cython/Utility/ObjectHandling.c index 7eb7bcacf..161572dfa 100644 --- a/Cython/Utility/ObjectHandling.c +++ b/Cython/Utility/ObjectHandling.c @@ -2156,7 +2156,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObj if (f) { return f(func, args, nargs, kwargs); } - #elif __Pyx_CyFunction_USED && CYTHON_BACKPORT_VECTORCALL + #elif defined(__Pyx_CyFunction_USED) && CYTHON_BACKPORT_VECTORCALL // exclude fused functions for now if (__Pyx_CyFunction_CheckExact(func)) { __pyx_vectorcallfunc f = __Pyx_CyFunction_func_vectorcall(func); |