mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
Fix win32 build on CI
This commit is contained in:
parent
d1b5ba0450
commit
bede18046e
@ -91,11 +91,12 @@ static int r_line_readchar_utf8(unsigned char *s, int slen) {
|
||||
static int r_line_readchar() {
|
||||
ut8 buf[2];
|
||||
*buf = '\0';
|
||||
int ret;
|
||||
#if __WINDOWS__
|
||||
BOOL ret;
|
||||
DWORD mode, out;
|
||||
HANDLE h;
|
||||
#else
|
||||
int ret;
|
||||
#endif
|
||||
|
||||
do_it_again:
|
||||
@ -130,7 +131,7 @@ do_it_again:
|
||||
if (*buf==0xc2 || *buf==0xc3) {
|
||||
read (0, buf+1, 1);
|
||||
*buf = '\0';
|
||||
}
|
||||
}
|
||||
} while (*buf == '\0');
|
||||
#endif
|
||||
#if ONLY_VALID_CHARS
|
||||
|
Loading…
Reference in New Issue
Block a user