visual studio 2012 Level 4 warning fixes

This commit is contained in:
Thomas Fischer 2014-03-15 11:38:53 +01:00
parent 835649aa2f
commit 502e346eb6
8 changed files with 19 additions and 24 deletions

View file

@ -1910,8 +1910,11 @@ extern int isatty (int );
b->yy_bs_column = 0;
}
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#ifdef _MSC_VER
b->yy_is_interactive = file ? (isatty( _fileno(file) ) > 0) : 0;
#else
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif // _MSC_VER
errno = oerrno;
}