reverted fileno change, MSVS specific API changes follow in another PR

This commit is contained in:
Thomas Fischer 2014-03-15 12:57:47 +01:00
parent 489106ae5e
commit 8c25dc8b18

View file

@ -1910,11 +1910,7 @@ extern int isatty (int );
b->yy_bs_column = 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;
}