diff options
-rw-r--r-- | win32/winansi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/winansi.c b/win32/winansi.c index a78d5f7e9..9db11cddb 100644 --- a/win32/winansi.c +++ b/win32/winansi.c | |||
@@ -51,7 +51,7 @@ static int is_console(int fd) | |||
51 | return isatty(fd) && get_console() != INVALID_HANDLE_VALUE; | 51 | return isatty(fd) && get_console() != INVALID_HANDLE_VALUE; |
52 | } | 52 | } |
53 | 53 | ||
54 | static int is_console_in(int fd) | 54 | static ALWAYS_INLINE int is_console_in(int fd) |
55 | { | 55 | { |
56 | return isatty(fd) && GetStdHandle(STD_INPUT_HANDLE) != INVALID_HANDLE_VALUE; | 56 | return isatty(fd) && GetStdHandle(STD_INPUT_HANDLE) != INVALID_HANDLE_VALUE; |
57 | } | 57 | } |
@@ -1083,7 +1083,7 @@ int winansi_getc(FILE *stream) | |||
1083 | { | 1083 | { |
1084 | int rv; | 1084 | int rv; |
1085 | 1085 | ||
1086 | rv = getc(stream); | 1086 | rv = _getc_nolock(stream); |
1087 | if (!is_console_in(fileno(stream))) | 1087 | if (!is_console_in(fileno(stream))) |
1088 | return rv; | 1088 | return rv; |
1089 | 1089 | ||