We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f3c68b commit 6e60430Copy full SHA for 6e60430
1 file changed
src/quicktions.pyx
@@ -82,6 +82,10 @@ cdef pow10(long long i):
82
83
# Half-private GCD implementation.
84
85
+cdef extern from "<stdlib.h>":
86
+ # Cython <= 3.2.4 bug: llabs requires C99 and stdlib.h, but Cython doesn't include that automatically.
87
+ pass
88
+
89
cdef extern from *:
90
"""
91
#if defined(__Pyx_PyLong_DigitCount)
@@ -179,7 +183,7 @@ cdef extern from *:
179
183
#if Py_LIMITED_API >= 0x030d0000
180
184
#define __Quicktions_HAS_FAST_MATH_GCD (1)
181
185
#elif Py_LIMITED_API >= 0x030b0000
182
- static int __Quicktions_HAS_FAST_MATH_GCD = (Py_Version >= 0x030d0000);
186
+ #define __Quicktions_HAS_FAST_MATH_GCD (Py_Version >= 0x030d0000)
187
#else
188
#define __Quicktions_HAS_FAST_MATH_GCD (0)
189
#endif
0 commit comments