summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2018-01-20 12:22:23 (GMT)
committer John-Mark Bell <jmb@netsurf-browser.org>2018-01-20 12:22:23 (GMT)
commite534d44bb67698168cd5241291309c8d2a22bfdf (patch)
tree8ecea79b432893b7c6b85112d505c70dfa013a7b
parent82d7ecb2e21bd5f737c825ad8ccd0d7be82fe4a1 (diff)
downloadnsgenbind-master.tar.gz
nsgenbind-master.tar.bz2
Fix YYLTYPE nonsense with bison >=3.0HEADmaster
-rw-r--r--src/nsgenbind-parser.y8
1 files changed, 8 insertions, 0 deletions
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;