Use _fgetc_nolock with msvc

(cherry picked from commit 5dcc221950)
This commit is contained in:
Marek Roszko 2023-05-07 12:33:33 -04:00 committed by Mark Roszko
parent f9b641b24d
commit 98bf66cb25
1 changed files with 1 additions and 1 deletions

View File

@ -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