musl/arch/wasm32/atomic_arch.h
Sam Clegg 94500fb127 [WebAssembly] Enable building with 'make' command
This change enables all of the .c sources in musl
be built with the clang -target wasm32-unknown-unknown-wasm
2017-10-19 17:42:50 -07:00

12 lines
188 B
C

#ifndef __NR_restart_syscall
#include <syscall.h>
#endif
#include <stdlib.h>
#define a_barrier() syscall(__NR_membarrier)
#define a_cas(p, t, s) (abort(), s)
#define a_crash() abort()