wasix-org / wasix-libc

wasix libc implementation for WebAssembly
https://wasi.dev
Other
111 stars 19 forks source link

signal.h: fix usage on C++ #10

Closed xbjfk closed 1 year ago

xbjfk commented 1 year ago

Every other musl header uses __restrict, which is supported in C++, whereas restrict is not a valid C++ keyword (fun fact: it's the only C keyword not supported in C++)

paked commented 1 year ago

Thank you! I've been having problems with this exact line!

ptitSeb commented 1 year ago

Thanks for the fix.