From a8b6a5e8e63c019c05e649993425bb9f9a5a86b5 Mon Sep 17 00:00:00 2001 From: Chris Phillips Date: Mon, 31 Jan 2022 22:18:12 +1100 Subject: [PATCH] Changes needed to compile on OSX --- vex.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/vex.h b/vex.h index 82417e4..0553c53 100644 --- a/vex.h +++ b/vex.h @@ -25,6 +25,21 @@ extern "C" { #endif +#ifdef YYPARSE_PARAM +#if defined __STDC__ || defined __cplusplus +int yyparse (void *YYPARSE_PARAM); +#else +int yyparse (); +#endif +#else /* ! YYPARSE_PARAM */ +#if defined __STDC__ || defined __cplusplus +int yyparse (void); +#else +int yyparse (); +#endif +#endif /* ! YYPARSE_PARAM */ + + /* structure declarations */ struct llist {