Skip to content

Commit 18adcef

Browse files
committed
Remove LONG
1 parent 4eaaf7d commit 18adcef

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use crate::ffi::CStr;
99
use crate::mem;
1010
pub use crate::os::raw::c_int;
11-
use crate::os::raw::{c_char, c_long, c_uint, c_ulong, c_ushort, c_void};
11+
use crate::os::raw::{c_char, c_uint, c_ulong, c_ushort, c_void};
1212
use crate::os::windows::io::{AsRawHandle, BorrowedHandle};
1313
use crate::ptr;
1414

@@ -18,8 +18,6 @@ mod windows_sys;
1818
pub use windows_sys::*;
1919

2020
pub type DWORD = c_ulong;
21-
#[cfg_attr(target_vendor = "uwp", allow(unused))]
22-
pub type LONG = c_long;
2321
pub type UINT = c_uint;
2422
pub type WCHAR = u16;
2523
pub type USHORT = c_ushort;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub unsafe fn reserve_stack() {
1111
debug_assert_ne!(result, 0, "failed to reserve stack space for exception handling");
1212
}
1313

14-
unsafe extern "system" fn vectored_handler(ExceptionInfo: *mut c::EXCEPTION_POINTERS) -> c::LONG {
14+
unsafe extern "system" fn vectored_handler(ExceptionInfo: *mut c::EXCEPTION_POINTERS) -> i32 {
1515
unsafe {
1616
let rec = &(*(*ExceptionInfo).ExceptionRecord);
1717
let code = rec.ExceptionCode;

0 commit comments

Comments
 (0)