diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2024-07-14 06:59:28 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2024-07-15 05:01:20 +0000 |
| commit | 286c3270b472c9ffed5d019f5d2b4073025701be (patch) | |
| tree | a0ce8bf344fb0620ff2c4c66f0b5d9b1038cfb49 /library/std/src | |
| parent | 5b700a76cf1c1d815f0082f7ea12c5f8c5a45114 (diff) | |
| download | rust-286c3270b472c9ffed5d019f5d2b4073025701be.tar.gz rust-286c3270b472c9ffed5d019f5d2b4073025701be.zip | |
Remove SIZE_T
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/pal/windows/alloc.rs | 4 | ||||
| -rw-r--r-- | library/std/src/sys/pal/windows/c.rs | 1 |
2 files changed, 2 insertions, 3 deletions
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<c::HANDLE>, // 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<c::HANDLE>, // 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; |
