From 511dcf67322ad87fb32f97d1cf7725c129e83898 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Feb 2016 16:01:42 +0200 Subject: Initial work to make ODB compatible with GCC 6 --- 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 7029c7e..64df296 100644 --- a/odb/cxx-lexer.cxx +++ b/odb/cxx-lexer.cxx @@ -135,8 +135,12 @@ cpp_error_callback ( #if BUILDING_GCC_MAJOR > 4 || BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR > 5 int /*reason*/, // Added in GCC 4.6.0. #endif +#if BUILDING_GCC_MAJOR <= 5 location_t, unsigned int, +#else + rich_location*, +#endif char const* msg, va_list *ap) { -- cgit v1.1