using _fileno(fout) instead of fout->_file makes it more portable across different MSVC versions

This commit is contained in:
Srikanth Anantharam 2015-09-11 00:27:17 +05:30
parent 1c187f8179
commit be9f1d4203
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void TIDY_CALL TY_(filesink_putByte)( void* sinkData, byte bv )
FILE* fout = (FILE*) sinkData;
fputc( bv, fout );
#if !defined(NDEBUG) && defined(_MSC_VER)
if (fout->_file != 2)
if (_fileno(fout) != 2)
SPRTF("%c",bv);
#endif
}