about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-28 16:32:02 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-28 16:32:02 -0700
commit8cf44bed57cccacdb853e620c0b479c358c83056 (patch)
tree3f776c2c9540a90479d39abce0a20f27ecf3e9f9
parent0622a74c48a708aec28d25964f4e9b4489580bc7 (diff)
downloadrust-8cf44bed57cccacdb853e620c0b479c358c83056.tar.gz
rust-8cf44bed57cccacdb853e620c0b479c358c83056.zip
core: Add int8_t, etc. types to libc::types::common::c99
-rw-r--r--src/libcore/libc.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libcore/libc.rs b/src/libcore/libc.rs
index 9b04de10f48..9a38d8762b2 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 {}