X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flibcore%2Flc_config_lexer.l;h=d0ed399332ab725773bebb672af243b18d6f46fe;hb=225580e8d7eabc0488b2ac4437cd34ec65cc93d6;hp=ec48dce2a6860377259a694d40069e18c51f9490;hpb=cfc7f9e2006fd93ed64399307b2b8728b03e4ec7;p=libfirm diff --git a/ir/libcore/lc_config_lexer.l b/ir/libcore/lc_config_lexer.l index ec48dce2a..d0ed39933 100644 --- a/ir/libcore/lc_config_lexer.l +++ b/ir/libcore/lc_config_lexer.l @@ -26,14 +26,25 @@ #endif #include +/* flex generated code wants a declaration of isatty... */ +#ifdef _WIN32 +#include +#else +#include #include "lc_parser_t.h" #include "lc_config_parser.h" -static int _lc_opt_wrap(void) -{ - return 1; +#define YY_NO_UNISTD_H +#define YY_NO_INPUT + +#ifdef __cplusplus +extern "C" { +#endif +static int _lc_opt_wrap(void); +#ifdef __cplusplus } +#endif %} @@ -105,3 +116,10 @@ nl \n . return yytext[0]; %% + +static int _lc_opt_wrap(void) +{ + /* avoid warning */ + (void) yyunput; + return 1; +}