]> git.lizzy.rs Git - rust.git/commitdiff
Fix intptr_t on win64
authorVadim Chugunov <vadimcn@gmail.com>
Sat, 23 Aug 2014 07:46:36 +0000 (00:46 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Sat, 23 Aug 2014 09:09:02 +0000 (02:09 -0700)
src/liblibc/lib.rs

index 859a2bce9728e181e2dae95da4ed27376bcddde1..d48d8676027ce81a63464ed73035dfc636e77c64 100644 (file)
@@ -1357,8 +1357,16 @@ pub mod c95 {
             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 {