Skip to content

Commit

Permalink
Fix compilation when using the gcc atomic wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
sylware authored and rbultje committed Oct 4, 2021
1 parent a671247 commit f52aee0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/compat/gcc/stdatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ typedef unsigned int atomic_uint;
#define atomic_load_explicit(p_a, mo) __atomic_load_n(p_a, mo)
#define atomic_fetch_add(p_a, inc) __atomic_fetch_add(p_a, inc, __ATOMIC_SEQ_CST)
#define atomic_fetch_sub(p_a, dec) __atomic_fetch_sub(p_a, dec, __ATOMIC_SEQ_CST)
#define atomic_exchange(p_a, v) __atomic_exchange_n(p_a, v, __ATOMIC_SEQ_CST)
#define atomic_fetch_or(p_a, v) __atomic_fetch_or(p_a, v, __ATOMIC_SEQ_CST)

#endif /* !defined(__cplusplus) */

Expand Down

0 comments on commit f52aee0

Please sign in to comment.