From e534d44bb67698168cd5241291309c8d2a22bfdf Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sat, 20 Jan 2018 12:22:23 +0000 Subject: Fix YYLTYPE nonsense with bison >=3.0 --- src/nsgenbind-parser.y | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/nsgenbind-parser.y b/src/nsgenbind-parser.y index fd41c37..d73401e 100644 --- a/src/nsgenbind-parser.y +++ b/src/nsgenbind-parser.y @@ -20,7 +20,15 @@ %code requires { +#ifndef YYLTYPE +/* Bison <3.0 */ #define YYLTYPE YYLTYPE +#else +/* Bison 3.0 or later */ +/* Keep in sync with the defined API prefix */ +#define NSGENBIND_LTYPE_IS_DECLARED 1 +#endif + typedef struct YYLTYPE { struct YYLTYPE *next; int start_line; -- cgit v1.2.1