From 626d2f2dcab92584c0324c93c6cc7294c7bf740c Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 19 Jan 2019 17:42:48 +0100 Subject: [PATCH] glr.cc: be more alike lalr1.cc --- data/skeletons/glr.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/skeletons/glr.cc b/data/skeletons/glr.cc index 7d333bf2..778c65b8 100644 --- a/data/skeletons/glr.cc +++ b/data/skeletons/glr.cc @@ -246,9 +246,12 @@ b4_percent_code_get([[requires]])[ #include #include -]m4_ifdef([b4_location_file], +]b4_cxx_portability[ +]m4_ifdef([b4_location_include], [[# include ]b4_location_include])[ +]b4_variant_if([b4_variant_includes])[ +]b4_attribute_define[ ]b4_null_define[ // Whether we are compiled with exception support. @@ -263,6 +266,7 @@ b4_percent_code_get([[requires]])[ ]b4_YYDEBUG_define[ ]b4_namespace_open[ + ]b4_bison_locations_if([m4_ifndef([b4_location_file], [b4_location_define])])[