Skip to content

Commit 8bcd37d

Browse files
committed
Auto merge of #2577 - sunfishcode:sunfishcode/wasi-max-align-t, r=Amanieu
Define max_align_t for wasi. WASI has a normal max_align_t.
2 parents bc30b21 + 21f5675 commit 8bcd37d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/wasi.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ 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+
#[allow(missing_debug_implementations)]
45+
pub struct max_align_t {
46+
priv_: [f64; 4]
47+
}
48+
}
49+
4250
pub type __wasi_rights_t = u64;
4351

4452
#[allow(missing_copy_implementations)]

0 commit comments

Comments
 (0)