diff --git a/include/stdatomic.h b/include/stdatomic.h index 3f577439..2d423d1a 100644 --- a/include/stdatomic.h +++ b/include/stdatomic.h @@ -78,6 +78,7 @@ typedef struct { } atomic_flag; #define ATOMIC_FLAG_INIT {0} +#define ATOMIC_VAR_INIT(value) (value) #define atomic_flag_test_and_set_explicit(object, order) \ __atomic_test_and_set((void *)(&((object)->value)), order)