diff options
author | Dan Gohman <dev@sunfishcode.online> | 2021-12-03 06:08:47 -0800 |
---|---|---|
committer | Dan Gohman <dev@sunfishcode.online> | 2021-12-03 06:52:30 -0800 |
commit | 76f88e91cf417709f7c8e999dd60952cc0b1b6d9 (patch) | |
tree | 337a578ff775f4d1a5a05ab8280668af3e2e03ce | |
parent | bc30b21e82ef43ee93197f7430be9c440bbb4289 (diff) | |
download | rust-libc-76f88e91cf417709f7c8e999dd60952cc0b1b6d9.tar.gz |
Define max_align_t for wasi.
WASI has a normal max_align_t.
-rw-r--r-- | src/wasi.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wasi.rs b/src/wasi.rs index ea83732898..f35f34cd4f 100644 --- a/src/wasi.rs +++ b/src/wasi.rs @@ -39,6 +39,13 @@ pub type blkcnt_t = i64; pub type nfds_t = c_ulong; pub type wchar_t = i32; +s_no_extra_traits! { + #[repr(align(16))] + pub struct max_align_t { + priv_: [f64; 4] + } +} + pub type __wasi_rights_t = u64; #[allow(missing_copy_implementations)] |