From 34286111363ca14aae81d50ab16732627425ef72 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Apr 2012 17:24:57 +0200 Subject: GCC 4.7 compatibility changes --- odb/gcc.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'odb/gcc.hxx') diff --git a/odb/gcc.hxx b/odb/gcc.hxx index da77027..3f9cd8c 100644 --- a/odb/gcc.hxx +++ b/odb/gcc.hxx @@ -16,8 +16,11 @@ #include // Include before GCC poisons some declarations. +#if BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR <= 6 extern "C" { +#endif + #include #include @@ -43,7 +46,10 @@ extern "C" #include #include -} + +#if BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR <= 6 +} // extern "C" +#endif #ifndef LOCATION_COLUMN #define LOCATION_COLUMN(LOC) (expand_location (LOC).column) -- cgit v1.1