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:
Asanka C. Herath
2010-11-18 20:47:36 -05:00
parent 59542f4298
commit 79454a6f62

View File

@@ -46,6 +46,9 @@ extern char *yytext;
#define alloca(x) malloc(x)
#endif
#define YYMALLOC malloc
#define YYFREE free
%}
%union {