From 286c3270b472c9ffed5d019f5d2b4073025701be Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Sun, 14 Jul 2024 06:59:28 +0000 Subject: Remove SIZE_T --- library/std/src/sys/pal/windows/alloc.rs | 4 ++-- library/std/src/sys/pal/windows/c.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'library/std/src') diff --git a/library/std/src/sys/pal/windows/alloc.rs b/library/std/src/sys/pal/windows/alloc.rs index e6cbdb6ef7d..c2fb0c2b876 100644 --- a/library/std/src/sys/pal/windows/alloc.rs +++ b/library/std/src/sys/pal/windows/alloc.rs @@ -114,7 +114,7 @@ fn init_or_get_process_heap() -> c::HANDLE { extern "C" fn process_heap_init_and_alloc( _heap: MaybeUninit, // We pass this argument to match the ABI of `HeapAlloc` flags: c::DWORD, - dwBytes: c::SIZE_T, + dwBytes: usize, ) -> c::LPVOID { let heap = init_or_get_process_heap(); if core::intrinsics::unlikely(heap.is_null()) { @@ -128,7 +128,7 @@ extern "C" fn process_heap_init_and_alloc( fn process_heap_alloc( _heap: MaybeUninit, // We pass this argument to match the ABI of `HeapAlloc`, flags: c::DWORD, - dwBytes: c::SIZE_T, + dwBytes: usize, ) -> c::LPVOID { let heap = HEAP.load(Ordering::Relaxed); if core::intrinsics::likely(!heap.is_null()) { diff --git a/library/std/src/sys/pal/windows/c.rs b/library/std/src/sys/pal/windows/c.rs index f38cf0e2ac7..a771a77d077 100644 --- a/library/std/src/sys/pal/windows/c.rs +++ b/library/std/src/sys/pal/windows/c.rs @@ -19,7 +19,6 @@ pub use windows_sys::*; pub type DWORD = c_ulong; pub type WCHAR = u16; -pub type SIZE_T = usize; pub type ULONG = c_ulong; pub type LPCVOID = *const c_void; -- cgit 1.4.1-3-g733a5