diff --git a/sdl2-sys/build.rs b/sdl2-sys/build.rs index e521f5b0..46531d30 100644 --- a/sdl2-sys/build.rs +++ b/sdl2-sys/build.rs @@ -1,3 +1,5 @@ +#![feature(os)] + extern crate "pkg-config" as pkg_config; fn main() { diff --git a/sdl2-sys/src/lib.rs b/sdl2-sys/src/lib.rs index 2a9a181c..4a0e5546 100644 --- a/sdl2-sys/src/lib.rs +++ b/sdl2-sys/src/lib.rs @@ -1,5 +1,7 @@ #![allow(non_camel_case_types)] +#![feature(core, libc)] + extern crate libc; pub mod scancode; diff --git a/sdl2-sys/src/rect.rs b/sdl2-sys/src/rect.rs index 7fa74cd0..e26955e8 100644 --- a/sdl2-sys/src/rect.rs +++ b/sdl2-sys/src/rect.rs @@ -6,7 +6,7 @@ use std::mem; use libc::c_int; /// A structure that defines a two dimensional point. -#[derive(PartialEq, Clone, Show, Copy)] +#[derive(PartialEq, Clone, Debug, Copy)] #[repr(C)] pub struct Point { pub x: i32, @@ -14,7 +14,7 @@ pub struct Point { } /// A structure that defines a rectangle, with the origin at the upper left. -#[derive(PartialEq, Clone, Show, Copy)] +#[derive(PartialEq, Clone, Debug, Copy)] #[repr(C)] pub struct Rect { pub x: i32, diff --git a/src/sdl2/gesture.rs b/src/sdl2/gesture.rs index 2088940d..bf7c7e44 100644 --- a/src/sdl2/gesture.rs +++ b/src/sdl2/gesture.rs @@ -1 +1,2 @@ +#[allow(unused)] use sys::gesture as ll; diff --git a/src/sdl2/haptic.rs b/src/sdl2/haptic.rs index 9e15878f..e72ed7bd 100644 --- a/src/sdl2/haptic.rs +++ b/src/sdl2/haptic.rs @@ -1,2 +1,3 @@ //! Haptic Functions +#[allow(unused)] use sys::haptic as ll;