diff --git a/lib.rs b/lib.rs index 5c802d9..669f95b 100644 --- a/lib.rs +++ b/lib.rs @@ -7,17 +7,19 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[crate_id = "github.com/mozilla-servo/sharegl#0.1"]; -#[crate_type = "lib"]; -#[crate_type = "dylib"]; -#[crate_type = "rlib"]; +#![crate_id = "github.com/mozilla-servo/sharegl#0.1"] +#![crate_type = "lib"] +#![crate_type = "dylib"] +#![crate_type = "rlib"] -#[feature(phase)]; -#[phase(syntax, link)] extern crate log; +#![feature(phase)] +extern crate geom; +extern crate libc; +#[phase(syntax, link)] +extern crate log; extern crate std; extern crate sync; -extern crate geom; #[cfg(target_os="macos")] extern crate core_foundation; diff --git a/platform/linux.rs b/platform/linux.rs index 04aff4b..ded889c 100644 --- a/platform/linux.rs +++ b/platform/linux.rs @@ -9,7 +9,7 @@ use context::GraphicsContextMethods; -use std::libc::{c_char, c_int, c_long, c_uint, c_ulong, c_void}; +use libc::{c_char, c_int, c_long, c_uint, c_ulong, c_void}; use std::ptr::null; use sync::Arc;