From be9f1d42035380759e67639c06b054486c726df5 Mon Sep 17 00:00:00 2001 From: Srikanth Anantharam Date: Fri, 11 Sep 2015 00:27:17 +0530 Subject: [PATCH] using _fileno(fout) instead of fout->_file makes it more portable across different MSVC versions --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index a1c14c9..f2e11e7 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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 }