From 5dcc221950f4acce089fc0ff583579f084c55c64 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 7 May 2023 12:33:33 -0400 Subject: [PATCH] Use _fgetc_nolock with msvc --- common/richio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/richio.cpp b/common/richio.cpp index 501d80d4ce..36cb30fd02 100644 --- a/common/richio.cpp +++ b/common/richio.cpp @@ -38,7 +38,7 @@ #if !defined( HAVE_FGETC_NOLOCK ) #ifdef _MSC_VER //getc is not a macro on windows and adds a tiny overhead for the indirection to eventually calling fgetc -#define getc_unlocked fgetc +#define getc_unlocked _fgetc_nolock #else #define getc_unlocked getc #endif