musl/arch/wasm32/pthread_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

8 lines
157 B
C

static inline struct pthread *__pthread_self(void) { return pthread_self(); }
#define TP_ADJ(p) (p)
#define CANCEL_REG_IP 16
#define MC_PC gregs[REG_EIP]