Now all CRT import libraries provide _getc_nolock and _putc_nolock symbols. This allows to use native _getc_nolock function from msvcr90+. --- mingw-w64-headers/crt/stdio.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h index 5725a6c1d37b..70ae19bcbf10 100644 --- a/mingw-w64-headers/crt/stdio.h +++ b/mingw-w64-headers/crt/stdio.h @@ -1206,14 +1206,12 @@ int vsnwprintf (wchar_t *__stream, size_t __n, const wchar_t *__format, __builti #ifdef _UCRT _CRTIMP int __cdecl _fgetc_nolock(FILE *_File); _CRTIMP int __cdecl _fputc_nolock(int _Char, FILE *_File); - _CRTIMP int __cdecl _getc_nolock(FILE *_File); - _CRTIMP int __cdecl _putc_nolock(int _Char, FILE *_File); #else #define _fgetc_nolock(_stream) (--(_stream)->_cnt >= 0 ? 0xff & *(_stream)->_ptr++ : _filbuf(_stream)) #define _fputc_nolock(_c,_stream) (--(_stream)->_cnt >= 0 ? 0xff & (*(_stream)->_ptr++ = (char)(_c)) : _flsbuf((_c),(_stream))) -#define _getc_nolock(_stream) _fgetc_nolock(_stream) -#define _putc_nolock(_c,_stream) _fputc_nolock(_c,_stream) #endif + _CRTIMP int __cdecl _getc_nolock(FILE *_File); + _CRTIMP int __cdecl _putc_nolock(int _Char, FILE *_File); #define _getchar_nolock() _getc_nolock(stdin) #define _putchar_nolock(_c) _putc_nolock((_c),stdout) #define _getwchar_nolock() _getwc_nolock(stdin) -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
