blob: 268e5af4f8d11a1c696d103f02132a4a0a49a20f [file] [log] [blame]
Alan Somers80673782019-01-14 23:02:03 -07001use dox::mem;
2
Sébastien Marie00648e12016-11-28 12:05:13 +01003pub type c_long = i64;
4pub type c_ulong = u64;
Sébastien Marie94827af2017-12-13 06:47:44 +01005pub type c_char = u8;
Alan Somers80673782019-01-14 23:02:03 -07006
7// should be pub(crate), but that requires Rust 1.18.0
gnzlbga17a91c2019-02-07 11:37:21 +01008cfg_if! {
9 if #[cfg(libc_const_size_of)] {
10 #[doc(hidden)]
11 pub const _ALIGNBYTES: usize = mem::size_of::<::c_long>() - 1;
12 } else {
13 #[doc(hidden)]
14 pub const _ALIGNBYTES: usize = 8 - 1;
15 }
16}