mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-18 13:43:27 +00:00
examples: reccalc: compile cleanly in C99
See https://trac.macports.org/ticket/59927. * examples/c/reccalc/parse.y: C99 does not allow multiple typedefs.
This commit is contained in:
1 parent
15ea35019f
commit
e3e21cc0d8
1 file changed
+3
@@ -133,6 +133,9 @@ exp:
|
||||
%%
|
||||
// Epilogue (C code).
|
||||
|
||||
// We already defined yyscan_t, don't let scan.h define it again.
|
||||
#define YY_TYPEDEF_YY_SCANNER_T
|
||||
typedef void* yyscan_t;
|
||||
#include "scan.h"
|
||||
|
||||
result
|
||||
|
||||
Reference in new issue
Block a user