We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfacbac commit 1325ee6Copy full SHA for 1325ee6
include/mimalloc/atomic.h
@@ -23,8 +23,10 @@ terms of the MIT license. A copy of the license can be found in the file
23
#define _Atomic(tp) std::atomic<tp>
24
#define mi_atomic(name) std::atomic_##name
25
#define mi_memory_order(name) std::memory_order_##name
26
-#if !defined(ATOMIC_VAR_INIT) || (__cplusplus >= 202002L) // c++20, see issue #571
27
- #define MI_ATOMIC_VAR_INIT(x) x
+#if (__cplusplus >= 202002L) // c++20, see issue #571
+#define MI_ATOMIC_VAR_INIT(x) x
28
+#elif !defined(ATOMIC_VAR_INIT)
29
30
#else
31
#define MI_ATOMIC_VAR_INIT(x) ATOMIC_VAR_INIT(x)
32
#endif
0 commit comments