Skip to content

Commit

Permalink
Unify signatures of GetConsoleMode by changing HANDLE to c_void
Browse files Browse the repository at this point in the history
`GetConsoleMode` was declared twice with different signatures.
The signatures have contained different definitions of `HANDLE`.
  • Loading branch information
jakoschiko committed Oct 20, 2021
1 parent 4b87907 commit ec39e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/test/src/helpers/isatty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cfg_if::cfg_if! {
pub fn stdout_isatty() -> bool {
type DWORD = u32;
type BOOL = i32;
type HANDLE = *mut u8;
type HANDLE = *mut core::ffi::c_void;
type LPDWORD = *mut u32;
const STD_OUTPUT_HANDLE: DWORD = -11i32 as DWORD;
extern "system" {
Expand Down

0 comments on commit ec39e42

Please sign in to comment.