diff options
-rw-r--r-- | gdb/c-exp.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 17f317b2e68..a669f1ae95f 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -167,7 +167,7 @@ static void check_parameter_typelist (std::vector<struct type *> *); static void write_destructor_name (struct parser_state *par_state, struct stoken); -#ifdef YYBISON +#if defined(YYBISON) && YYBISON < 30800 static void c_print_token (FILE *file, int type, YYSTYPE value); #define YYPRINT(FILE, TYPE, VALUE) c_print_token (FILE, TYPE, VALUE) #endif @@ -3429,7 +3429,8 @@ c_parse (struct parser_state *par_state) return yyparse (); } -#ifdef YYBISON +#if defined(YYBISON) && YYBISON < 30800 + /* This is called via the YYPRINT macro when parser debugging is enabled. It prints a token's value. */ |