Skip to content

Commit

Permalink
Auto merge of #2577 - sunfishcode:sunfishcode/wasi-max-align-t, r=Ama…
Browse files Browse the repository at this point in the history
…nieu

Define max_align_t for wasi.

WASI has a normal max_align_t.
  • Loading branch information
bors committed Dec 3, 2021
2 parents bc30b21 + 21f5675 commit 8bcd37d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/wasi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ pub type blkcnt_t = i64;
pub type nfds_t = c_ulong;
pub type wchar_t = i32;

s_no_extra_traits! {
#[repr(align(16))]
#[allow(missing_debug_implementations)]
pub struct max_align_t {
priv_: [f64; 4]
}
}

pub type __wasi_rights_t = u64;

#[allow(missing_copy_implementations)]
Expand Down

0 comments on commit 8bcd37d

Please sign in to comment.