Skip to content

Commit 119f8b4

Browse files
committed
Fix intptr_t on win64
1 parent 58bb603 commit 119f8b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/liblibc/lib.rs

Lines changed: 8 additions & 0 deletions
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)