From be9f0a1a670736f3a02cebf55e3c25a91faa3303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Wed, 23 Oct 2024 17:01:42 -0400 Subject: [PATCH] The MSVC builds apparently target some ancient API So we need to define the Windows API ourselves. :( --- src/conio/win32cio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/conio/win32cio.c b/src/conio/win32cio.c index b13557f5c9..363fcb712e 100644 --- a/src/conio/win32cio.c +++ b/src/conio/win32cio.c @@ -376,6 +376,10 @@ int win32_getch(void) #define ENABLE_AUTO_POSITION 0x0100 #endif +#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING +#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 +#endif + static DWORD orig_in_conmode=0; static DWORD orig_out_conmode=0; static void * win32_suspendbuf=NULL; -- GitLab