Skip to content

Commit f66fd2e

Browse files
committed
auto merge of #16692 : vadimcn/rust/fix-win64, r=luqmana
This fixes fallout from 2dc2ac1, which did not take into account win64.
2 parents a284240 + 119f8b4 commit f66fd2e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/liblibc/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1357,8 +1357,16 @@ pub mod types {
13571357
pub mod c99 {
13581358
pub type c_longlong = i64;
13591359
pub type c_ulonglong = u64;
1360+
1361+
#[cfg(target_arch = "x86")]
13601362
pub type intptr_t = i32;
1363+
#[cfg(target_arch = "x86_64")]
1364+
pub type intptr_t = i64;
1365+
1366+
#[cfg(target_arch = "x86")]
13611367
pub type uintptr_t = u32;
1368+
#[cfg(target_arch = "x86_64")]
1369+
pub type uintptr_t = u64;
13621370
}
13631371

13641372
pub mod posix88 {

0 commit comments

Comments
 (0)