From ee9c9f3db3eb4b689e565c282345b1f49bba5042 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 7 Feb 2015 13:07:12 +0200 Subject: Fix to work with GCC 5 --- odb/cxx-lexer.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'odb/cxx-lexer.cxx') diff --git a/odb/cxx-lexer.cxx b/odb/cxx-lexer.cxx index ae07bd2..fea05d7 100644 --- a/odb/cxx-lexer.cxx +++ b/odb/cxx-lexer.cxx @@ -181,7 +181,11 @@ cxx_string_lexer:: cxx_string_lexer () : reader_ (0) { +#if BUILDING_GCC_MAJOR >= 5 + linemap_init (&line_map_, UNKNOWN_LOCATION); +#else linemap_init (&line_map_); +#endif #if BUILDING_GCC_MAJOR > 4 || BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR > 6 line_map_.round_alloc_size = ggc_round_alloc_size; -- cgit v1.1