Skip to content

Commit

Permalink
Merge pull request #17 from larsbergstrom/rustup_20140410
Browse files Browse the repository at this point in the history
Upgrade to rust
  • Loading branch information
metajack committed Apr 12, 2014
2 parents 1249802 + 7de2c6c commit baf9f22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// this file defines CGFloat, as well as stubbed data types.

use std::libc;
use libc;

// TODO: this is actually a libc::c_float on 32bit
pub type CGFloat = libc::c_double;
Expand Down
2 changes: 1 addition & 1 deletion data_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

use core_foundation::base::{CFRelease, CFTypeID, TCFType};

use libc::{c_void, size_t};
use std::cast;
use std::libc::{c_void, size_t};
use std::ptr;

pub type CGDataProviderGetBytesCallback = *u8;
Expand Down
2 changes: 1 addition & 1 deletion font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use core_foundation::base::{CFRelease, CFTypeID, TCFType};

use data_provider::{CGDataProvider, CGDataProviderRef};
use std::libc;
use libc;

pub type CGGlyph = libc::c_ushort;

Expand Down
9 changes: 5 additions & 4 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[crate_id = "github.com/mozilla-servo/rust-core-graphics#core_graphics:0.1"];
#[crate_type = "lib"];
#[crate_type = "dylib"];
#[crate_type = "rlib"];
#![crate_id = "github.com/mozilla-servo/rust-core-graphics#core_graphics:0.1"]
#![crate_type = "lib"]
#![crate_type = "dylib"]
#![crate_type = "rlib"]

extern crate libc;
extern crate std;
extern crate core_foundation;

Expand Down

0 comments on commit baf9f22

Please sign in to comment.