Remove LONG

This commit is contained in:
Chris Denton 2024-07-14 06:43:43 +00:00
parent 91ba4ebcfd
commit 65da4af0be
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
2 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,7 @@
use crate::ffi::CStr; use crate::ffi::CStr;
use crate::mem; use crate::mem;
pub use crate::os::raw::c_int; pub use crate::os::raw::c_int;
use crate::os::raw::{c_char, c_long, c_uint, c_ulong, c_ushort, c_void}; use crate::os::raw::{c_char, c_uint, c_ulong, c_ushort, c_void};
use crate::os::windows::io::{AsRawHandle, BorrowedHandle}; use crate::os::windows::io::{AsRawHandle, BorrowedHandle};
use crate::ptr; use crate::ptr;
@ -18,8 +18,6 @@ mod windows_sys;
pub use windows_sys::*; pub use windows_sys::*;
pub type DWORD = c_ulong; pub type DWORD = c_ulong;
#[cfg_attr(target_vendor = "uwp", allow(unused))]
pub type LONG = c_long;
pub type UINT = c_uint; pub type UINT = c_uint;
pub type WCHAR = u16; pub type WCHAR = u16;
pub type USHORT = c_ushort; pub type USHORT = c_ushort;

View File

@ -11,7 +11,7 @@ pub unsafe fn reserve_stack() {
debug_assert_ne!(result, 0, "failed to reserve stack space for exception handling"); debug_assert_ne!(result, 0, "failed to reserve stack space for exception handling");
} }
unsafe extern "system" fn vectored_handler(ExceptionInfo: *mut c::EXCEPTION_POINTERS) -> c::LONG { unsafe extern "system" fn vectored_handler(ExceptionInfo: *mut c::EXCEPTION_POINTERS) -> i32 {
unsafe { unsafe {
let rec = &(*(*ExceptionInfo).ExceptionRecord); let rec = &(*(*ExceptionInfo).ExceptionRecord);
let code = rec.ExceptionCode; let code = rec.ExceptionCode;