]> granicus.if.org Git - nethack/commitdiff
attempt to fix mingw build
authornhmall <nhmall@nethack.org>
Mon, 11 Oct 2021 19:08:05 +0000 (15:08 -0400)
committernhmall <nhmall@nethack.org>
Mon, 11 Oct 2021 19:08:05 +0000 (15:08 -0400)
This was detected by one of the CI builds.

sys/windows/consoletty.c

index 4211103a917866303559ebaa380e99488839d58f..d9031c0b38f3d69b07b51732294f785a4cf591e1 100644 (file)
 #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)