Block conflicting declarations from Bison
If YYMALLOC and YYFREE aren't defined, Bison can generate prototypes for them that conflict with the native declarations.
This commit is contained in:
@@ -46,6 +46,9 @@ extern char *yytext;
|
||||
#define alloca(x) malloc(x)
|
||||
#endif
|
||||
|
||||
#define YYMALLOC malloc
|
||||
#define YYFREE free
|
||||
|
||||
%}
|
||||
|
||||
%union {
|
||||
|
Reference in New Issue
Block a user