()
| 54 | |
| 55 | #[cfg(windows)] |
| 56 | pub fn get_errno() -> i32 { |
| 57 | unsafe extern "C" { |
| 58 | fn _get_errno(pValue: *mut i32) -> i32; |
| 59 | } |
| 60 | let mut errno = 0; |
| 61 | unsafe { suppress_iph!(_get_errno(&mut errno)) }; |
| 62 | errno |
| 63 | } |
| 64 | |
| 65 | #[cfg(not(windows))] |
| 66 | pub fn get_errno() -> i32 { |
no test coverage detected