Skip to main content

core_graphics2/
base.rs

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