mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Remove unused msvcrt::get_errno
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user