flexfix: Match Verilog-perl fix for new gcc.

This commit is contained in:
Wilson Snyder 2016-02-02 19:32:17 -05:00
parent cb2d8259f2
commit 0725999f0a

View File

@ -18,6 +18,8 @@
my $Opt_Prefix = $ARGV[0] or die "%Error: No prefix specified,";
foreach my $line (<STDIN>) {
# Fix flex 2.6.0 warning
$line =~ s/ number_to_move == YY_MORE_ADJ / (int)number_to_move == (int)YY_MORE_ADJ /;
# Fix flex 2.5.4 namespace omission
$line =~ s/^class istream;/\#include <iostream>\nusing namespace std;\n/;
# Fix flex 2.5.31 redefinition