diff options
author | Biswa96 <nathbappai@gmail.com> | 2020-06-07 12:02:11 +0530 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-06-07 08:12:21 +0100 |
commit | 0656b8730855833567bf305b930442f50cbd44b4 (patch) | |
tree | 40fa1d7a8807e4c3da4eee5966572462635a8a12 | |
parent | 4a2af48e64b63e266948b9341ef11c6c4e5575b7 (diff) | |
download | busybox-w32-0656b8730855833567bf305b930442f50cbd44b4.tar.gz busybox-w32-0656b8730855833567bf305b930442f50cbd44b4.tar.bz2 busybox-w32-0656b8730855833567bf305b930442f50cbd44b4.zip |
winansi: suppress console flags redefinition warning
Modern versions of MinGW-w64 define more console modes.
-rw-r--r-- | win32/winansi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/winansi.c b/win32/winansi.c index dd99b42af..8ec75a4e4 100644 --- a/win32/winansi.c +++ b/win32/winansi.c | |||
@@ -53,8 +53,13 @@ static int is_console_in(int fd) | |||
53 | return isatty(fd) && GetStdHandle(STD_INPUT_HANDLE) != INVALID_HANDLE_VALUE; | 53 | return isatty(fd) && GetStdHandle(STD_INPUT_HANDLE) != INVALID_HANDLE_VALUE; |
54 | } | 54 | } |
55 | 55 | ||
56 | #ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING | ||
56 | #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 | 57 | #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 |
58 | #endif | ||
59 | |||
60 | #ifndef DISABLE_NEWLINE_AUTO_RETURN | ||
57 | #define DISABLE_NEWLINE_AUTO_RETURN 0x0008 | 61 | #define DISABLE_NEWLINE_AUTO_RETURN 0x0008 |
62 | #endif | ||
58 | 63 | ||
59 | int skip_ansi_emulation(int reset) | 64 | int skip_ansi_emulation(int reset) |
60 | { | 65 | { |