mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-13 05:10:07 +08:00
stdatomic: memory models as macros
This commit is contained in:
parent
02ea864ad2
commit
5053fd03a7
@ -78,6 +78,13 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define __ATOMIC_RELAXED 0
|
||||
#define __ATOMIC_CONSUME 1
|
||||
#define __ATOMIC_ACQUIRE 2
|
||||
#define __ATOMIC_RELEASE 3
|
||||
#define __ATOMIC_ACQ_REL 4
|
||||
#define __ATOMIC_SEQ_CST 5
|
||||
|
||||
#if defined _WIN32
|
||||
#define __declspec(x) __attribute__((x))
|
||||
#define __cdecl
|
||||
|
Loading…
Reference in New Issue
Block a user