Skip to content

Commit 8a25371

Browse files
committed
Remove SIZE_T
1 parent cd51de1 commit 8a25371

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

std/src/sys/pal/windows/alloc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn init_or_get_process_heap() -> c::HANDLE {
114114
extern "C" fn process_heap_init_and_alloc(
115115
_heap: MaybeUninit<c::HANDLE>, // We pass this argument to match the ABI of `HeapAlloc`
116116
flags: c::DWORD,
117-
dwBytes: c::SIZE_T,
117+
dwBytes: usize,
118118
) -> c::LPVOID {
119119
let heap = init_or_get_process_heap();
120120
if core::intrinsics::unlikely(heap.is_null()) {
@@ -128,7 +128,7 @@ extern "C" fn process_heap_init_and_alloc(
128128
fn process_heap_alloc(
129129
_heap: MaybeUninit<c::HANDLE>, // We pass this argument to match the ABI of `HeapAlloc`,
130130
flags: c::DWORD,
131-
dwBytes: c::SIZE_T,
131+
dwBytes: usize,
132132
) -> c::LPVOID {
133133
let heap = HEAP.load(Ordering::Relaxed);
134134
if core::intrinsics::likely(!heap.is_null()) {

std/src/sys/pal/windows/c.rs

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub use windows_sys::*;
1919

2020
pub type DWORD = c_ulong;
2121
pub type WCHAR = u16;
22-
pub type SIZE_T = usize;
2322
pub type ULONG = c_ulong;
2423

2524
pub type LPCVOID = *const c_void;

0 commit comments

Comments
 (0)