am 8b25009d: Merge "Revert change to win32 isatty stub"
* commit '8b25009d92626e7f1bb3b8fdf2774df20ec7a769': Revert change to win32 isatty stub
This commit is contained in:
@@ -5,6 +5,13 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
int isatty(int fd)
|
||||||
|
{
|
||||||
|
return (fd == 0);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::cerr;
|
using std::cerr;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
|||||||
@@ -7,13 +7,6 @@
|
|||||||
|
|
||||||
extern YYSTYPE yylval;
|
extern YYSTYPE yylval;
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
static inline int isatty(int fd)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// comment and whitespace handling
|
// comment and whitespace handling
|
||||||
// these functions save a copy of the buffer
|
// these functions save a copy of the buffer
|
||||||
static void begin_extra_text(unsigned lineno, which_extra_text which);
|
static void begin_extra_text(unsigned lineno, which_extra_text which);
|
||||||
|
|||||||
Reference in New Issue
Block a user