Skip to content

Commit

Permalink
avoid warning on newer clang
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Jun 30, 2023
1 parent 1325ee6 commit 36ee5f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/mimalloc/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ terms of the MIT license. A copy of the license can be found in the file
#include <stdatomic.h>
#define mi_atomic(name) atomic_##name
#define mi_memory_order(name) memory_order_##name
#if !defined(ATOMIC_VAR_INIT) || (__STDC_VERSION__ >= 201710L) // c17, see issue #735
#if (__STDC_VERSION__ >= 201710L) // c17, see issue #735
#define MI_ATOMIC_VAR_INIT(x) x
#elif !defined(ATOMIC_VAR_INIT)
#define MI_ATOMIC_VAR_INIT(x) x
#else
#define MI_ATOMIC_VAR_INIT(x) ATOMIC_VAR_INIT(x)
Expand Down

0 comments on commit 36ee5f9

Please sign in to comment.