X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flibcore%2Flc_config_lexer.l;h=d0ed399332ab725773bebb672af243b18d6f46fe;hb=225580e8d7eabc0488b2ac4437cd34ec65cc93d6;hp=1902e3e16215a73a86c600a9b4c859cb4daf90da;hpb=ea75e9d38674b468f602a0699fb64b9c01254797;p=libfirm diff --git a/ir/libcore/lc_config_lexer.l b/ir/libcore/lc_config_lexer.l index 1902e3e16..d0ed39933 100644 --- a/ir/libcore/lc_config_lexer.l +++ b/ir/libcore/lc_config_lexer.l @@ -26,11 +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" +#define YY_NO_UNISTD_H +#define YY_NO_INPUT + +#ifdef __cplusplus +extern "C" { +#endif static int _lc_opt_wrap(void); +#ifdef __cplusplus +} +#endif %} @@ -107,6 +121,5 @@ static int _lc_opt_wrap(void) { /* avoid warning */ (void) yyunput; - (void) input; return 1; }