diff --git a/lib.rs b/lib.rs index 50a956a..1f48db5 100644 --- a/lib.rs +++ b/lib.rs @@ -7,13 +7,14 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[crate_id = "github.com/mozilla-servo/rust-xlib#xlib:0.1"]; -#[crate_type = "lib"]; -#[crate_type = "dylib"]; -#[crate_type = "rlib"]; +#![crate_id = "github.com/mozilla-servo/rust-xlib#xlib:0.1"] +#![crate_type = "lib"] +#![crate_type = "dylib"] +#![crate_type = "rlib"] -#[feature(globs)]; +#![feature(globs)] +extern crate libc; extern crate std; pub mod xlib; diff --git a/xlib.rs b/xlib.rs index 522f835..d2d8844 100644 --- a/xlib.rs +++ b/xlib.rs @@ -7,10 +7,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[allow(non_uppercase_statics)]; -#[allow(non_camel_case_types)]; +#![allow(non_uppercase_statics)] +#![allow(non_camel_case_types)] -use std::libc::*; +use libc::*; pub type XID = c_ulong;