aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-14 08:29:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-14 08:29:04 +0200
commitf4f831d1c17e6d0f867d2a398822d518930a2ecd (patch)
treec1cf9e5cf29cbd60decd786a9fd732c4b4441294
parentc94fb9e51326cf4528574e191f9375e9cb22c723 (diff)
GCC 4.5 compatibility fix
-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