Skip to content

Commit

Permalink
Add libc::c_bool type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy committed Jan 3, 2016
1 parent fb83189 commit c700e64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fn main() {
cfg.header("errno.h")
.header("fcntl.h")
.header("limits.h")
.header("stdbool.h")
.header("stddef.h")
.header("stdint.h")
.header("stdio.h")
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ pub type uint16_t = u16;
pub type uint32_t = u32;
pub type uint64_t = u64;

pub type c_bool = u8;
pub type c_schar = i8;
pub type c_uchar = u8;
pub type c_short = i16;
Expand Down

0 comments on commit c700e64

Please sign in to comment.