diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-07 13:07:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-07 13:07:12 +0200 |
commit | ee9c9f3db3eb4b689e565c282345b1f49bba5042 (patch) | |
tree | 2add5cd40b963dcd0f0a6e49a96f18180c1b96e5 /odb/cxx-lexer.cxx | |
parent | 00c779a294a86c2e9ce2d2a09216e169dd69a666 (diff) |
Fix to work with GCC 5
Diffstat (limited to 'odb/cxx-lexer.cxx')
-rw-r--r-- | odb/cxx-lexer.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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; |