From: Paul Eggert Date: Sun, 13 Oct 2002 20:35:06 +0000 (+0000) Subject: (b4_token_defines): Protect against double-inclusion X-Git-Tag: BISON-1_75~15 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6b8c32543638059d1fef0db2fa6c4c4d6c96ae34 (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. --- diff --git a/data/c.m4 b/data/c.m4 index 21145a17..417ccd21 100644 --- a/data/c.m4 +++ b/data/c.m4 @@ -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 {