Remove LONG
This commit is contained in:
parent
91ba4ebcfd
commit
65da4af0be
@ -8,7 +8,7 @@
|
||||
use crate::ffi::CStr;
|
||||
use crate::mem;
|
||||
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::ptr;
|
||||
|
||||
@ -18,8 +18,6 @@ mod windows_sys;
|
||||
pub use windows_sys::*;
|
||||
|
||||
pub type DWORD = c_ulong;
|
||||
#[cfg_attr(target_vendor = "uwp", allow(unused))]
|
||||
pub type LONG = c_long;
|
||||
pub type UINT = c_uint;
|
||||
pub type WCHAR = u16;
|
||||
pub type USHORT = c_ushort;
|
||||
|
@ -11,7 +11,7 @@ pub unsafe fn reserve_stack() {
|
||||
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 {
|
||||
let rec = &(*(*ExceptionInfo).ExceptionRecord);
|
||||
let code = rec.ExceptionCode;
|
||||
|
Loading…
x
Reference in New Issue
Block a user