From 658c4f60c5ea83d15fcfe458ae88932c8003b5cc Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 22 Apr 2016 10:33:44 -0700 Subject: [PATCH] fix compile error with use of ATOMIC_FLAG_INIT closes #60 --- src/atomics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atomics.h b/src/atomics.h index d236435..a395f50 100644 --- a/src/atomics.h +++ b/src/atomics.h @@ -37,7 +37,7 @@ struct SoundIoAtomicFlag { #define SOUNDIO_ATOMIC_EXCHANGE(a, value) (a.x.exchange(value)) #define SOUNDIO_ATOMIC_FLAG_TEST_AND_SET(a) (a.x.test_and_set()) #define SOUNDIO_ATOMIC_FLAG_CLEAR(a) (a.x.clear()) -#define SOUNDIO_ATOMIC_FLAG_INIT {ATOMIC_FLAG_INIT} +#define SOUNDIO_ATOMIC_FLAG_INIT ATOMIC_FLAG_INIT #else @@ -65,7 +65,7 @@ struct SoundIoAtomicFlag { #define SOUNDIO_ATOMIC_EXCHANGE(a, value) atomic_exchange(&a.x, value) #define SOUNDIO_ATOMIC_FLAG_TEST_AND_SET(a) atomic_flag_test_and_set(&a.x) #define SOUNDIO_ATOMIC_FLAG_CLEAR(a) atomic_flag_clear(&a.x) -#define SOUNDIO_ATOMIC_FLAG_INIT {ATOMIC_FLAG_INIT} +#define SOUNDIO_ATOMIC_FLAG_INIT ATOMIC_FLAG_INIT #endif