stdatomic: memory models as macros

This commit is contained in:
Dmitry Selyutin 2021-01-27 13:26:48 +03:00
parent 02ea864ad2
commit 5053fd03a7

View File

@ -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