using _fileno(fout) instead of fout->_file makes it more portable across different MSVC versions
This commit is contained in:
parent
1c187f8179
commit
be9f1d4203
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue