From 119f8b46948643176f07055be8b81fc48d957614 Mon Sep 17 00:00:00 2001 From: Vadim Chugunov Date: Sat, 23 Aug 2014 00:46:36 -0700 Subject: [PATCH] Fix intptr_t on win64 --- src/liblibc/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 859a2bce972..d48d8676027 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -1357,8 +1357,16 @@ pub mod types { pub mod c99 { pub type c_longlong = i64; pub type c_ulonglong = u64; + + #[cfg(target_arch = "x86")] pub type intptr_t = i32; + #[cfg(target_arch = "x86_64")] + pub type intptr_t = i64; + + #[cfg(target_arch = "x86")] pub type uintptr_t = u32; + #[cfg(target_arch = "x86_64")] + pub type uintptr_t = u64; } pub mod posix88 {