Work around old Bison versions not forward-declaring yyparse

Notably, macOS still ships 2.3 (from 2008)...
Should fix #214
This commit is contained in:
ISSOtm
2020-12-09 16:00:22 +01:00
parent 462fd7539c
commit 44124319a6

View File

@@ -34,6 +34,10 @@
#include "helpers.h"
#include "version.h"
// Old Bison versions (confirmed for 2.3) do not forward-declare `yyparse` in the generated header
// Unfortunately, macOS still ships 2.3, which is from 2008...
int yyparse(void);
size_t cldefines_index;
size_t cldefines_numindices;
size_t cldefines_bufsize;