summaryrefslogtreecommitdiff
path: root/odb/gcc.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-04-02 18:41:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-04-02 18:41:18 +0200
commit15e6fd2b0976f82eb1ef10d2d26912d12e4f0a99 (patch)
treeebec92c4dd0ef6998c22fbe7e0971463615973db /odb/gcc.hxx
parent33e79981967fe82d392c90974031abd444e1f9f8 (diff)
Implement pragma support
Diffstat (limited to 'odb/gcc.hxx')
-rw-r--r--odb/gcc.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/gcc.hxx b/odb/gcc.hxx
index ab54707..9d1e3bc 100644
--- a/odb/gcc.hxx
+++ b/odb/gcc.hxx
@@ -29,7 +29,16 @@ extern "C"
#include "diagnostic.h"
#include "c-common.h"
+#include "c-pragma.h"
#include "cp/cp-tree.h"
}
+#ifndef LOCATION_COLUMN
+#define LOCATION_COLUMN(LOC) (expand_location (LOC).column)
+#endif
+
+#ifndef DECL_SOURCE_COLUMN
+#define DECL_SOURCE_COLUMN(NODE) LOCATION_COLUMN (DECL_SOURCE_LOCATION (NODE))
+#endif
+
#endif // ODB_GCC_TREE_HXX