summaryrefslogtreecommitdiff
path: root/Cython/Utility/MemoryView_C.c
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Utility/MemoryView_C.c')
-rw-r--r--Cython/Utility/MemoryView_C.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cython/Utility/MemoryView_C.c b/Cython/Utility/MemoryView_C.c
index 34664f062..1b78b2a4e 100644
--- a/Cython/Utility/MemoryView_C.c
+++ b/Cython/Utility/MemoryView_C.c
@@ -24,6 +24,9 @@ typedef struct {
#ifndef CYTHON_ATOMICS
#define CYTHON_ATOMICS 1
#endif
+// using CYTHON_ATOMICS as a cdef extern bint in the Cython memoryview code
+// interacts badly with "import *". Therefore, define a helper function-like macro
+#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __pyx_atomic_int_type int