(b4_token_defines): Protect against double-inclusion

by wrapping enum yytokentype's definition inside #ifndef
YYTOKENTYPE.  This undoes a bug I introduced on 2002-10-12.
This commit is contained in:
Paul Eggert
2002-10-13 20:35:06 +00:00
parent 6fed0802ee
commit 6b8c325436

View File

@@ -107,7 +107,8 @@ m4_define([b4_token_enum],
m4_define([b4_token_defines],
[m4_if([$@], [[]], [],
[/* Tokens. */
#if defined (__STDC__) || defined (__cplusplus)
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {