summaryrefslogtreecommitdiff
path: root/libodb-qt/odb/qt/version.options
diff options
context:
space:
mode:
Diffstat (limited to 'libodb-qt/odb/qt/version.options')
-rw-r--r--libodb-qt/odb/qt/version.options16
1 files changed, 16 insertions, 0 deletions
diff --git a/libodb-qt/odb/qt/version.options b/libodb-qt/odb/qt/version.options
new file mode 100644
index 0000000..0fef537
--- /dev/null
+++ b/libodb-qt/odb/qt/version.options
@@ -0,0 +1,16 @@
+# file : odb/qt/version.options
+# license : GNU GPL v2; see accompanying LICENSE file
+
+# Include the config file first so that it can do its thing before we
+# include any Qt headers.
+#
+--odb-prologue '#include <odb/qt/details/config.hxx>'
+
+# Make sure the options files as seen by the ODB compiler and header
+# files as seen by the C++ compiler have the same Qt interface version.
+#
+--hxx-prologue '#include <odb/qt/version.hxx>'
+
+--hxx-prologue '#if ODB_QT_VERSION != 2047600 // 2.5.0-b.26'
+--hxx-prologue '# error ODB and C++ compilers see different libodb-qt interface versions'
+--hxx-prologue '#endif'