Skip to content

Commit

Permalink
Merge pull request #125 from mvdnes/schar_moved
Browse files Browse the repository at this point in the history
c_schar is no longer in libc base export
  • Loading branch information
lifthrasiir committed Apr 17, 2014
2 parents 81afef5 + 00366d7 commit 804adf6
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/sdl/cd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ use get_error;
pub mod ll {
#![allow(non_camel_case_types)]

use libc::{c_int, c_schar, uint8_t, uint16_t, uint32_t};
use libc::{c_int, uint8_t, uint16_t, uint32_t};
use libc::types::os::arch::c95::c_schar;

pub type CDstatus = c_int;

Expand Down
3 changes: 2 additions & 1 deletion src/sdl/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pub mod ll {
#![allow(non_camel_case_types)]

use std::cast;
use libc::{c_void, c_int, c_uint, c_uchar, c_schar, uint8_t, uint16_t, int16_t};
use libc::{c_void, c_int, c_uint, c_uchar, uint8_t, uint16_t, int16_t};
use libc::types::os::arch::c95::c_schar;

pub type SDLKey = c_uint;
pub type SDLMod = c_uint;
Expand Down
3 changes: 2 additions & 1 deletion src/sdl/joy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ use get_error;
pub mod ll {
#![allow(non_camel_case_types)]

use libc::{c_void, c_int, c_schar, uint8_t, int16_t};
use libc::{c_void, c_int, uint8_t, int16_t};
use libc::types::os::arch::c95::c_schar;

pub type SDL_Joystick = c_void;

Expand Down
3 changes: 2 additions & 1 deletion src/sdl/sdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ mod others {
pub mod ll {
#![allow(non_camel_case_types)]

use libc::{c_int, c_uint, c_schar, uint32_t};
use libc::{c_int, c_uint, uint32_t};
use libc::types::os::arch::c95::c_schar;

pub type SDL_errorcode = c_uint;
pub static SDL_ENOMEM: SDL_errorcode = 0;
Expand Down
3 changes: 2 additions & 1 deletion src/sdl/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ pub mod ll {

use Rect;

use libc::{c_void, c_uint, c_int, c_float, c_schar, c_uchar, uint8_t, uint16_t};
use libc::{c_void, c_uint, c_int, c_float, c_uchar, uint8_t, uint16_t};
use libc::{uint32_t, int32_t};
use libc::types::os::arch::c95::c_schar;

pub type SDL_Rect = Rect;

Expand Down
3 changes: 2 additions & 1 deletion src/sdl/wm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ pub mod ll {

use video::ll::SDL_Surface;

use libc::{c_schar, uint8_t, c_int};
use libc::{uint8_t, c_int};
use libc::types::os::arch::c95::c_schar;

pub type SDL_GrabMode = c_int;

Expand Down
3 changes: 2 additions & 1 deletion src/sdl_image/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ pub mod ll {

use sdl::video::ll::SDL_Surface;

use libc::{c_int, c_uint, c_schar};
use libc::{c_int, c_uint};
use libc::types::os::arch::c95::c_schar;

pub type IMG_InitFlags = c_uint;

Expand Down

0 comments on commit 804adf6

Please sign in to comment.