51 #if ( (__STDC_VERSION__ >= 201112L) && ! defined(__STD_NO_ATOMICS__) ) || defined (_STDATOMIC_H)
54 #define AA_ATOMIC _Atomic
55 #define aa_mem_ref_inc aa_mem_ref_inc_atomic
56 #define aa_mem_ref_dec aa_mem_ref_dec_atomic
64 aa_mem_ref_inc_atomic( AA_ATOMIC
unsigned *count );
72 aa_mem_ref_dec_atomic( AA_ATOMIC
unsigned *count );
76 #warning "No C11 atomics. Include stdatomic.h or refcounts will be slow."
80 #define aa_mem_ref_inc aa_mem_ref_inc_mutex
81 #define aa_mem_ref_dec aa_mem_ref_dec_mutex
98 aa_mem_ref_inc_mutex(
unsigned *count );
106 aa_mem_ref_dec_mutex(
unsigned *count );
#define AA_API
calling and name mangling convention for functions