mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-22 09:50:21 +08:00
stdatomic.h: Add ATOMIC_VAR_INIT macro.
This commit is contained in:
parent
ece74ceaaf
commit
a473473fed
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user