summaryrefslogtreecommitdiff
path: root/odb/pragma.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pragma.hxx')
-rw-r--r--odb/pragma.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/pragma.hxx b/odb/pragma.hxx
index efb80d8..cafaedd 100644
--- a/odb/pragma.hxx
+++ b/odb/pragma.hxx
@@ -12,6 +12,8 @@
#include <vector>
#include <string>
+#include <odb/option-types.hxx> // database
+
#include <cutl/container/any.hxx>
#include <cutl/container/multi-index.hxx>
#include <cutl/compiler/context.hxx>
@@ -256,6 +258,11 @@ extern decl_pragmas decl_pragmas_;
typedef std::set<std::string> pragma_name_set;
extern pragma_name_set simple_value_pragmas_;
+// Database we are generating code for. Used to ignore database-specific
+// pragmas.
+//
+extern database pragma_db_;
+
extern "C" void
register_odb_pragmas (void*, void*);