aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-17 08:16:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-17 08:16:00 +0200
commit9b7f203f1f8a40765649312442efa9602335f757 (patch)
tree7f456d155bbb2f3493de62b596632b4b935fdef4
parent2e718bca0b13d1df0e43d3f9c532560e363441ec (diff)
GCC 4.8 compatibility fixes
-rw-r--r--odb/gcc.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/gcc.hxx b/odb/gcc.hxx
index 2112411..c463554 100644
--- a/odb/gcc.hxx
+++ b/odb/gcc.hxx
@@ -18,11 +18,12 @@
#include <bversion.h>
-// GCC 4.7 can be built using either C or C++ compiler.
+// GCC 4.7 can be built using either C or C++ compiler. From 4.8 it
+// is always built as C++.
//
#if BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR <= 6
# define ODB_GCC_PLUGIN_C
-#else
+#elif BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR <= 7
# include <config.h>
# ifndef ENABLE_BUILD_WITH_CXX
# define ODB_GCC_PLUGIN_C