From 8cf44bed57cccacdb853e620c0b479c358c83056 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 28 Mar 2012 16:32:02 -0700 Subject: [PATCH] core: Add int8_t, etc. types to libc::types::common::c99 --- src/libcore/libc.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/libcore/libc.rs b/src/libcore/libc.rs index 9b04de10f481..9a38d8762b20 100644 --- a/src/libcore/libc.rs +++ b/src/libcore/libc.rs @@ -139,7 +139,16 @@ mod types { enum FILE {} enum fpos_t {} } - mod c99 { } + mod c99 { + type int8_t = i8; + type int16_t = i16; + type int32_t = i32; + type int64_t = i64; + type uint8_t = u8; + type uint16_t = u16; + type uint32_t = u32; + type uint64_t = u64; + } mod posix88 { enum DIR {} enum dirent {}