Remove unused msvcrt::get_errno

This commit is contained in:
Noa
2022-05-11 23:36:02 -05:00
parent d6a3358615
commit f04bc70e72

View File

@@ -24,16 +24,6 @@ mod msvcrt {
unsafe { suppress_iph!(_setmode(fd, libc::O_BINARY)) };
}
pub fn get_errno() -> i32 {
let mut e = 0;
unsafe { suppress_iph!(_get_errno(&mut e)) };
e
}
extern "C" {
fn _get_errno(pValue: *mut i32) -> i32;
}
extern "C" {
fn _getch() -> i32;
fn _getwch() -> u32;