]> git.proxmox.com Git - wasi-libc.git/commit
Avoid using cast expressions in WASI API constants. (#148)
authorDan Gohman <sunfish@mozilla.com>
Mon, 16 Dec 2019 21:29:06 +0000 (13:29 -0800)
committerGitHub <noreply@github.com>
Mon, 16 Dec 2019 21:29:06 +0000 (13:29 -0800)
commitdd010beea5c443ad05cf6acdbcab1adad25b4ed5
tree931cb311281a77964ec3da91a9a1547f9d62cc0c
parentf645f498dfbbbc00a7a97874d33082d3605c3f21
Avoid using cast expressions in WASI API constants. (#148)

Cast expressions aren't valid to use in some preprocessor constants, so
change the constants to use `UINT32_C` etc. instead of casts.

Fixes #146.
expected/wasm32-wasi/predefined-macros.txt
libc-bottom-half/headers/public/wasi/api.h
tools/wasi-headers/src/c_header.rs