mirror of https://github.com/rust-lang/rust.git
Remove SIZE_T
This commit is contained in:
parent
5b700a76cf
commit
286c3270b4
|
@ -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()) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue