diff --git a/base.rs b/base.rs index 90a495e..5e1a6c7 100644 --- a/base.rs +++ b/base.rs @@ -9,6 +9,8 @@ // this file defines CGFloat, as well as stubbed data types. +use std::libc; + // TODO: this is actually a libc::c_float on 32bit pub type CGFloat = libc::c_double; diff --git a/data_provider.rs b/data_provider.rs index 80cb092..c96dd0d 100644 --- a/data_provider.rs +++ b/data_provider.rs @@ -9,7 +9,9 @@ use core_foundation::base::{AbstractCFTypeRef, CFTypeID, CFTypeRef, CFWrapper}; -use core::libc::{c_void, c_char, size_t}; +use std::cast; +use std::libc::{c_void, c_char, size_t}; +use std::ptr; pub type CGDataProviderGetBytesCallback = *u8; pub type CGDataProviderReleaseInfoCallback = *u8; diff --git a/font.rs b/font.rs index 60e2deb..994ceee 100644 --- a/font.rs +++ b/font.rs @@ -10,6 +10,7 @@ use core_foundation::base::{AbstractCFTypeRef, CFTypeID, CFTypeRef, CFWrapper}; use data_provider::{CGDataProvider, CGDataProviderRef}; +use std::libc; pub type CGGlyph = libc::c_ushort;