From c0303615a661ee0fcb399b888efb2a653e6b66ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mariusz=20Pluci=C5=84ski?= Date: Fri, 25 Jul 2014 16:07:06 +0200 Subject: [PATCH] Fix warning about redefined macro when multiple scanners are used. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) 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"); } } -- 2.40.0