]> granicus.if.org Git - flex/commitdiff
Fix warning about redefined macro when multiple scanners are used.
authorMariusz Pluciński <mplucinski@mplucinski.com>
Fri, 25 Jul 2014 14:07:06 +0000 (16:07 +0200)
committerWill Estes <westes575@gmail.com>
Mon, 24 Nov 2014 00:53:41 +0000 (19:53 -0500)
src/main.c

index 8a70b8d5a69415cc0538a140ff5e493428cd5170..87107022804ce4e38e78fe1efee1d7b864546d8a 100644 (file)
@@ -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");
                        }
                }