mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +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:
@@ -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