From 0b22ecb55af0911c87b260c87e77124af7ab32aa Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Sun, 14 Jul 2024 06:44:48 +0000 Subject: [PATCH] Remove UINT --- std/src/sys/pal/windows/c.rs | 1 - std/src/sys/pal/windows/os.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/std/src/sys/pal/windows/c.rs b/std/src/sys/pal/windows/c.rs index 315bffa220e50..da96858d68691 100644 --- a/std/src/sys/pal/windows/c.rs +++ b/std/src/sys/pal/windows/c.rs @@ -18,7 +18,6 @@ mod windows_sys; pub use windows_sys::*; pub type DWORD = c_ulong; -pub type UINT = c_uint; pub type WCHAR = u16; pub type USHORT = c_ushort; pub type SIZE_T = usize; diff --git a/std/src/sys/pal/windows/os.rs b/std/src/sys/pal/windows/os.rs index 62199c16bfed3..542fabcb66556 100644 --- a/std/src/sys/pal/windows/os.rs +++ b/std/src/sys/pal/windows/os.rs @@ -383,7 +383,7 @@ pub fn home_dir() -> Option { } pub fn exit(code: i32) -> ! { - unsafe { c::ExitProcess(code as c::UINT) } + unsafe { c::ExitProcess(code as u32) } } pub fn getpid() -> u32 {