From 4dba053f4c4cd2a2c9bfac820d79a90e7c8af359 Mon Sep 17 00:00:00 2001 From: Stephen Hurd <deuce@synchro.net> Date: Tue, 10 Nov 2020 15:55:16 -0500 Subject: [PATCH] Guard _unlock_file() with _MSC_VER, not _WIN32 (mingw doesn't have it) --- src/conio/ansi_cio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conio/ansi_cio.c b/src/conio/ansi_cio.c index 7d12107ce3..ca75d7f5e0 100644 --- a/src/conio/ansi_cio.c +++ b/src/conio/ansi_cio.c @@ -1013,7 +1013,7 @@ int ansi_initciolib(long inmode) void ansi_suspend(void) { -#if defined _WIN32 +#if defined _MSC_VER // Prevents the wait for a key press when exit() is called and the stdin stream is flushed _unlock_file(stdin); #endif -- GitLab