diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index fe0a34512..4cbc957c0 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -63,13 +63,18 @@ static __attribute__ ((unused)) const char rcsid[] = #define YYDEBUG 1 #define YYERROR_VERBOSE 1 +#undef YYERROR_VERBOSE extern char *yytext; static void yyerror (const char *s) { +#ifdef YYERROR_VERBOSE error (0, "%s %s\n", yytext, s); +#else + error (0, "%s before %s", s, yytext); +#endif } static void