summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;