about summary refs log tree commit diff
path: root/src/liblibc
diff options
context:
space:
mode:
authorVadim Chugunov <vadimcn@gmail.com>2014-08-23 00:46:36 -0700
committerVadim Chugunov <vadimcn@gmail.com>2014-08-23 02:09:02 -0700
commit119f8b46948643176f07055be8b81fc48d957614 (patch)
tree3560c71124b82b10abf532c797ac14d62bb638bc /src/liblibc
parent58bb603ea74a388d7a4dafc0c78f214a46301505 (diff)
downloadrust-119f8b46948643176f07055be8b81fc48d957614.tar.gz
rust-119f8b46948643176f07055be8b81fc48d957614.zip
Fix intptr_t on win64
Diffstat (limited to 'src/liblibc')
-rw-r--r--src/liblibc/lib.rs8
1 files changed, 8 insertions, 0 deletions
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 {