From 0656b8730855833567bf305b930442f50cbd44b4 Mon Sep 17 00:00:00 2001 From: Biswa96 Date: Sun, 7 Jun 2020 12:02:11 +0530 Subject: winansi: suppress console flags redefinition warning Modern versions of MinGW-w64 define more console modes. --- win32/winansi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'win32') 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) return isatty(fd) && GetStdHandle(STD_INPUT_HANDLE) != INVALID_HANDLE_VALUE; } +#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 +#endif + +#ifndef DISABLE_NEWLINE_AUTO_RETURN #define DISABLE_NEWLINE_AUTO_RETURN 0x0008 +#endif int skip_ansi_emulation(int reset) { -- cgit v1.2.3-55-g6feb