From: nhmall Date: Mon, 11 Oct 2021 19:08:05 +0000 (-0400) Subject: attempt to fix mingw build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16c2df511d580187482c8780107f30531bf135c5;p=nethack attempt to fix mingw build This was detected by one of the CI builds. --- diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index 4211103a9..d9031c0b3 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -32,6 +32,12 @@ #endif #endif /* VIRTUAL_TERMINAL_SEQUENCES */ +#ifdef __MINGW32__ +#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING +#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 +#endif +#endif + extern boolean getreturn_enabled; /* from sys/share/pcsys.c */ extern int redirect_stdout; @@ -1317,7 +1323,7 @@ term_end_24bitcolor(void) { console.color24 = 0L; } -#endif VIRTUAL_TERMINAL_SEQUENCES +#endif /* VIRTUAL_TERMINAL_SEQUENCES */ void cl_end(void)