Skip to content

Commit 76f88e9

Browse files
committed
Define max_align_t for wasi.
WASI has a normal max_align_t.
1 parent bc30b21 commit 76f88e9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/wasi.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ pub type blkcnt_t = i64;
3939
pub type nfds_t = c_ulong;
4040
pub type wchar_t = i32;
4141

42+
s_no_extra_traits! {
43+
#[repr(align(16))]
44+
pub struct max_align_t {
45+
priv_: [f64; 4]
46+
}
47+
}
48+
4249
pub type __wasi_rights_t = u64;
4350

4451
#[allow(missing_copy_implementations)]

0 commit comments

Comments
 (0)