浏览代码

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

Thomas Fischer 11 年之前
父节点
当前提交
8c25dc8b18
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      Engine/source/console/CMDscan.cpp

+ 0 - 4
Engine/source/console/CMDscan.cpp

@@ -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;
 }