Alan Somers | 8067378 | 2019-01-14 23:02:03 -0700 | [diff] [blame] | 1 | use dox::mem; |
| 2 | |
Sébastien Marie | 00648e1 | 2016-11-28 12:05:13 +0100 | [diff] [blame] | 3 | pub type c_long = i32; |
| 4 | pub type c_ulong = u32; |
Sébastien Marie | 94827af | 2017-12-13 06:47:44 +0100 | [diff] [blame] | 5 | pub type c_char = i8; |
Alan Somers | 8067378 | 2019-01-14 23:02:03 -0700 | [diff] [blame] | 6 | |
| 7 | // should be pub(crate), but that requires Rust 1.18.0 |
gnzlbg | a17a91c | 2019-02-07 11:37:21 +0100 | [diff] [blame] | 8 | cfg_if! { |
| 9 | if #[cfg(libc_const_size_of)] { |
| 10 | #[doc(hidden)] |
| 11 | pub const _ALIGNBYTES: usize = mem::size_of::<::c_int>() - 1; |
| 12 | } else { |
| 13 | #[doc(hidden)] |
| 14 | pub const _ALIGNBYTES: usize = 4 - 1; |
| 15 | } |
| 16 | } |