aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/gcc.hxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/odb/gcc.hxx b/odb/gcc.hxx
index 7967b74..fa37c67 100644
--- a/odb/gcc.hxx
+++ b/odb/gcc.hxx
@@ -33,8 +33,15 @@ extern "C"
#include <cpplib.h>
#include <cp/cp-tree.h>
-#include <c-common.h>
-#include <c-pragma.h>
+
+#if BUILDING_GCC_MAJOR > 4 || BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR > 5
+# include <c-family/c-common.h>
+# include <c-family/c-pragma.h>
+#else
+# include <c-common.h>
+# include <c-pragma.h>
+#endif
+
#include <diagnostic.h>
}