diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-03 17:20:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-03 17:20:43 +0200 |
commit | ac0ac59de3b7973001b209a938080c9ec0ab9262 (patch) | |
tree | ab895ae5d94bea82e0793cdf816ab8df00d0dac0 /odb/cxx-lexer.cxx | |
parent | b435821274779cfcd8f447955e3ef3baf84c1ab9 (diff) |
Add support for GCC 4.6
Diffstat (limited to 'odb/cxx-lexer.cxx')
-rw-r--r-- | odb/cxx-lexer.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/odb/cxx-lexer.cxx b/odb/cxx-lexer.cxx index 24f1231..bcbeb49 100644 --- a/odb/cxx-lexer.cxx +++ b/odb/cxx-lexer.cxx @@ -28,8 +28,15 @@ char const* cxx_lexer::token_spelling[N_TTYPES + 1] = { TTYPE_TABLE "KEYWORD"}; // extern "C" bool cpp_error_callback ( - cpp_reader* reader, int level, location_t, unsigned int, - char const* msg, va_list *ap) + cpp_reader* reader, + int level, +#if BUILDING_GCC_MAJOR > 4 || BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR > 5 + int /*reason*/, // Added in GCC 4.6.0. +#endif + location_t, + unsigned int, + char const* msg, + va_list *ap) { char const* kind (0); switch (level) |