blob: 99350ec8dc3d464e360e5b8cab37425905f88e3f [file] [log] [blame]
Chris Wailes2f380c12022-11-09 13:04:22 -08001pub type c_long = i64;
2pub type c_ulong = u64;
3pub type c_char = u8;
4
5// should be pub(crate), but that requires Rust 1.18.0
6cfg_if! {
7 if #[cfg(libc_const_size_of)] {
8 #[doc(hidden)]
9 pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1;
10 } else {
11 #[doc(hidden)]
12 pub const _ALIGNBYTES: usize = 8 - 1;
13 }
14}
15
16pub const _MAX_PAGE_SHIFT: u32 = 12;