We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1325ee6 commit 36ee5f9Copy full SHA for 36ee5f9
1 file changed
include/mimalloc/atomic.h
@@ -41,7 +41,9 @@ terms of the MIT license. A copy of the license can be found in the file
41
#include <stdatomic.h>
42
#define mi_atomic(name) atomic_##name
43
#define mi_memory_order(name) memory_order_##name
44
-#if !defined(ATOMIC_VAR_INIT) || (__STDC_VERSION__ >= 201710L) // c17, see issue #735
+#if (__STDC_VERSION__ >= 201710L) // c17, see issue #735
45
+ #define MI_ATOMIC_VAR_INIT(x) x
46
+#elif !defined(ATOMIC_VAR_INIT)
47
#define MI_ATOMIC_VAR_INIT(x) x
48
#else
49
#define MI_ATOMIC_VAR_INIT(x) ATOMIC_VAR_INIT(x)
0 commit comments