Skip to content

Commit ec39e42

Browse files
committed
Unify signatures of GetConsoleMode by changing HANDLE to c_void
`GetConsoleMode` was declared twice with different signatures. The signatures have contained different definitions of `HANDLE`.
1 parent 4b87907 commit ec39e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/test/src/helpers/isatty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cfg_if::cfg_if! {
1010
pub fn stdout_isatty() -> bool {
1111
type DWORD = u32;
1212
type BOOL = i32;
13-
type HANDLE = *mut u8;
13+
type HANDLE = *mut core::ffi::c_void;
1414
type LPDWORD = *mut u32;
1515
const STD_OUTPUT_HANDLE: DWORD = -11i32 as DWORD;
1616
extern "system" {

0 commit comments

Comments
 (0)