1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cfg_if! {
    if #[cfg(target_arch = "x86_64")] {
        #[allow(non_camel_case_types)]
        pub type boolean_t = libc::c_uint;
    } else {
        #[allow(non_camel_case_types)]
        pub type boolean_t = libc::c_int;
    }
}

cfg_if! {
    if #[cfg(target_pointer_width = "64")] {
        pub type CGFloat = libc::c_double;
    } else {
        pub type CGFloat = libc::c_float;
    }
}