X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Flibcore%2Flc_config_lexer.l;h=d0ed399332ab725773bebb672af243b18d6f46fe;hb=7747a6e6199f5b098c27a6cf181589d590291222;hp=9acedd9aeac4ebb83a302f951a819ba2e81b4420;hpb=de1b0c8d4f653f534a38740ad7f6803d82f2762e;p=libfirm diff --git a/ir/libcore/lc_config_lexer.l b/ir/libcore/lc_config_lexer.l index 9acedd9ae..d0ed39933 100644 --- a/ir/libcore/lc_config_lexer.l +++ b/ir/libcore/lc_config_lexer.l @@ -21,17 +21,30 @@ License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#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 %} @@ -103,3 +116,10 @@ nl \n . return yytext[0]; %% + +static int _lc_opt_wrap(void) +{ + /* avoid warning */ + (void) yyunput; + return 1; +}