Use _fgetc_nolock with msvc

This commit is contained in:
Marek Roszko 2023-05-07 12:33:33 -04:00
parent b92f62337f
commit 5dcc221950
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@
#if !defined( HAVE_FGETC_NOLOCK ) #if !defined( HAVE_FGETC_NOLOCK )
#ifdef _MSC_VER #ifdef _MSC_VER
//getc is not a macro on windows and adds a tiny overhead for the indirection to eventually calling fgetc //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 #else
#define getc_unlocked getc #define getc_unlocked getc
#endif #endif