don't roll your own declaration of isatty; use <unistd.h>; needs to be checked
for c++
This commit is contained in:
parent
169563b7c1
commit
3646bd21df
@ -1,7 +1,7 @@
|
||||
/* A lexical scanner generated by flex */
|
||||
|
||||
/* Scanner skeleton version:
|
||||
* $NetBSD: flex.skl,v 1.15 2000/06/17 11:56:21 assar Exp $
|
||||
* $NetBSD: flex.skl,v 1.16 2001/01/06 02:09:31 christos Exp $
|
||||
*/
|
||||
|
||||
#define FLEX_SCANNER
|
||||
@ -1190,7 +1190,7 @@ void yyFlexLexer::yy_delete_buffer( YY_BUFFER_STATE b )
|
||||
%-
|
||||
#ifndef YY_ALWAYS_INTERACTIVE
|
||||
#ifndef YY_NEVER_INTERACTIVE
|
||||
extern int isatty YY_PROTO(( int ));
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -1203,7 +1203,6 @@ FILE *file;
|
||||
#endif
|
||||
|
||||
%+
|
||||
extern "C" int isatty YY_PROTO(( int ));
|
||||
void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file )
|
||||
%*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user