aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/gcc.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/gcc.hxx b/odb/gcc.hxx
index 5290d7a..2112411 100644
--- a/odb/gcc.hxx
+++ b/odb/gcc.hxx
@@ -63,6 +63,8 @@ extern "C"
} // extern "C"
#endif
+// Only since GCC 4.7.0.
+//
#ifndef LOCATION_COLUMN
#define LOCATION_COLUMN(LOC) (expand_location (LOC).column)
#endif
@@ -71,4 +73,10 @@ extern "C"
#define DECL_SOURCE_COLUMN(NODE) LOCATION_COLUMN (DECL_SOURCE_LOCATION (NODE))
#endif
+// Only since GCC 4.6.0.
+//
+#ifndef DECL_CHAIN
+#define DECL_CHAIN(x) TREE_CHAIN(x)
+#endif
+
#endif // ODB_GCC_HXX