summaryrefslogtreecommitdiff
path: root/odb/gcc.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-27 17:24:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-27 17:24:57 +0200
commit34286111363ca14aae81d50ab16732627425ef72 (patch)
tree5862221a980e92162380afa4fe31b86efdc5b54d /odb/gcc.hxx
parent52793dc8860e38f725dc0ca8300c4e2ca9d4ceb9 (diff)
GCC 4.7 compatibility changes
Diffstat (limited to 'odb/gcc.hxx')
-rw-r--r--odb/gcc.hxx8
1 files changed, 7 insertions, 1 deletions
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 <cstdlib> // Include before GCC poisons some declarations.
+#if BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR <= 6
extern "C"
{
+#endif
+
#include <bversion.h>
#include <gcc-plugin.h>
@@ -43,7 +46,10 @@ extern "C"
#include <diagnostic.h>
#include <output.h>
-}
+
+#if BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR <= 6
+} // extern "C"
+#endif
#ifndef LOCATION_COLUMN
#define LOCATION_COLUMN(LOC) (expand_location (LOC).column)