X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fyy-remap.h;h=15b70e5bb1b73b2d9cce02c6da02f80b79895087;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=09b0a892d4e416df5098f6a527a86909e279b0bf;hpb=61baf725eca99af2569262d10aca03dcde2698f6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/yy-remap.h b/gdb/yy-remap.h index 09b0a892d4..15b70e5bb1 100644 --- a/gdb/yy-remap.h +++ b/gdb/yy-remap.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1986-2017 Free Software Foundation, Inc. +/* Copyright (C) 1986-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -15,6 +15,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#ifndef YY_REMAP_H +#define YY_REMAP_H + /* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc), as well as gratuitiously global symbol names, so we can have multiple yacc generated parsers in gdb. Note that these are only @@ -89,4 +92,8 @@ # define YYDEBUG 1 /* Default to yydebug support */ #endif -#define YYFPRINTF parser_fprintf +#ifndef TEST_CPNAMES +# define YYFPRINTF parser_fprintf +#endif + +#endif /* YY_REMAP_H */