1#![allow(non_camel_case_types)]
3
4#[cfg(any(target_arch = "avr", target_arch = "msp430"))]
6mod ints {
7 pub type c_int = i16;
9 pub type c_uint = u16;
11}
12
13#[cfg(not(any(target_arch = "avr", target_arch = "msp430")))]
14mod ints {
15 pub type c_int = i32;
17 pub type c_uint = u32;
19}
20
21#[cfg(all(target_pointer_width = "64", not(windows)))]
22mod longs {
23 pub type c_ulong = u64;
25}
26#[cfg(not(all(target_pointer_width = "64", not(windows))))]
27mod longs {
28 pub type c_ulong = u32;
30}
31
32pub use ints::*;
33pub use longs::*;