Files
core-foundation-rs/src/base.rs
T
2015-06-03 21:57:27 -06:00

27 lines
813 B
Rust

// Copyright 2013 The Servo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// this file defines CGFloat, as well as stubbed data types.
#![allow(non_camel_case_types)]
use libc;
#[cfg(target_pointer_width = "32")]
pub type boolean_t = i32;
#[cfg(target_pointer_width = "64")]
pub type boolean_t = u32;
// TODO: this is actually a libc::c_float on 32bit
pub type CGFloat = libc::c_double;
pub type CGError = libc::int32_t;
pub type CGAffineTransform = ();