From: Mariusz PluciƄski Date: Fri, 25 Jul 2014 14:07:06 +0000 (+0200) Subject: Fix warning about redefined macro when multiple scanners are used. X-Git-Tag: v2.6.0~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0303615a661ee0fcb399b888efb2a653e6b66ed;p=flex Fix warning about redefined macro when multiple scanners are used. --- diff --git a/src/main.c b/src/main.c index 8a70b8d..8710702 100644 --- a/src/main.c +++ b/src/main.c @@ -1686,6 +1686,10 @@ void readin () } else { outn ("extern char *yytext;"); + + outn("#ifdef yytext_ptr"); + outn("#undef yytext_ptr"); + outn("#endif"); outn ("#define yytext_ptr yytext"); } }