Avoid warnings from gcc -Wundef y.tab.c.

* data/glr.c: Check if YYENABLE_NLS and YYLTYPE_IS_TRIVIAL are
defined before using them.
* data/lalr1.cc: Likewise.
* data/yacc.c: Likewise.
This commit is contained in:
Jonathan Nieder
2009-12-15 22:03:18 -06:00
committed by Joel E. Denny
parent c843aaab35
commit ae93128c96
4 changed files with 14 additions and 6 deletions

View File

@@ -398,7 +398,7 @@ m4_if(b4_prefix, [yy], [],
b4_percent_code_get[]dnl
[#ifndef YY_
# if YYENABLE_NLS
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* FIXME: INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)