diff options
| author | Joshua Sheard <mail@jsheard.com> | 2017-05-06 15:46:16 +0100 |
|---|---|---|
| committer | Joshua Sheard <mail@jsheard.com> | 2017-05-06 15:46:16 +0100 |
| commit | db8be04e49f32d36270e87b71b74c4b71764647e (patch) | |
| tree | b771451bd73c2454066820b3ed0575ac871c197e /src/libstd/sys | |
| parent | 8aad3a3524fd04db3e6ddf59604d33c8e3797108 (diff) | |
| download | rust-db8be04e49f32d36270e87b71b74c4b71764647e.tar.gz rust-db8be04e49f32d36270e87b71b74c4b71764647e.zip | |
Fix definitions of ULONG_PTR
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/c.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstd/sys/windows/c.rs b/src/libstd/sys/windows/c.rs index 4e08c7a0125..5e46069cf7d 100644 --- a/src/libstd/sys/windows/c.rs +++ b/src/libstd/sys/windows/c.rs @@ -14,8 +14,9 @@ #![cfg_attr(test, allow(dead_code))] #![unstable(issue = "0", feature = "windows_c")] -use os::raw::{c_int, c_uint, c_ulong, c_long, c_longlong, c_ushort,}; -use os::raw::{c_char, c_ulonglong}; +use os::raw::{c_int, c_uint, c_ulong, c_long, c_longlong, c_ushort, c_char}; +#[cfg(target_arch = "x86_64")] +use os::raw::c_ulonglong; use libc::{wchar_t, size_t, c_void}; use ptr; @@ -45,7 +46,7 @@ pub type SIZE_T = usize; pub type WORD = u16; pub type CHAR = c_char; pub type HCRYPTPROV = LONG_PTR; -pub type ULONG_PTR = c_ulonglong; +pub type ULONG_PTR = usize; pub type ULONG = c_ulong; #[cfg(target_arch = "x86_64")] pub type ULONGLONG = u64; |
