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