aboutsummaryrefslogtreecommitdiff
path: root/hidl-gen_l.ll
diff options
context:
space:
mode:
Diffstat (limited to 'hidl-gen_l.ll')
-rw-r--r--hidl-gen_l.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/hidl-gen_l.ll b/hidl-gen_l.ll
index 007cd4ce..34baa283 100644
--- a/hidl-gen_l.ll
+++ b/hidl-gen_l.ll
@@ -65,6 +65,14 @@ using token = yy::parser::token;
#define YY_DECL int yylex(YYSTYPE* yylval_param, YYLTYPE* yylloc_param, \
yyscan_t yyscanner, android::AST* const ast, android::Scope** const scope)
+#ifndef YYSTYPE
+#define YYSTYPE yy::parser::semantic_type
+#endif
+
+#ifndef YYLTYPE
+#define YYLTYPE yy::parser::location_type
+#endif
+
#define YY_USER_ACTION yylloc->step(); yylloc->columns(yyleng);
%}