aboutsummaryrefslogtreecommitdiff
path: root/odb/qt/version.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-03-22 17:39:20 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-03-22 17:39:20 +0200
commit62996fbf441dc92d686e97f336b20a5fea972962 (patch)
tree09171cec997faff086c4918af32b2a8d49c72b57 /odb/qt/version.hxx
parentdfb1ac9f19feacdce627b7e4bb20192bc71fe2d6 (diff)
Add dist build files
Diffstat (limited to 'odb/qt/version.hxx')
-rw-r--r--odb/qt/version.hxx44
1 files changed, 44 insertions, 0 deletions
diff --git a/odb/qt/version.hxx b/odb/qt/version.hxx
new file mode 100644
index 0000000..88ca1a1
--- /dev/null
+++ b/odb/qt/version.hxx
@@ -0,0 +1,44 @@
+// file : odb/qt/version.hxx
+// author : Constantin Michael <constantin@codesynthesis.com>
+// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_QT_VERSION_HXX
+#define ODB_QT_VERSION_HXX
+
+#include <odb/pre.hxx>
+
+#include <odb/version.hxx>
+
+// Version format is AABBCCDD where
+//
+// AA - major version number
+// BB - minor version number
+// CC - bugfix version number
+// DD - alpha / beta (DD + 50) version number
+//
+// When DD is not 00, 1 is subtracted from AABBCC. For example:
+//
+// Version AABBCCDD
+// 2.0.0 02000000
+// 2.1.0 02010000
+// 2.1.1 02010100
+// 2.2.0.a1 02019901
+// 3.0.0.b2 02999952
+//
+
+// Check that we have compatible ODB version.
+//
+#if ODB_VERSION != 10200
+# error incompatible odb interface version detected
+#endif
+
+// libodb-qt version: odb interface version plus the bugfix
+// version.
+//
+#define LIBODB_QT_VERSION 1020000
+#define LIBODB_QT_VERSION_STR "1.2.0"
+
+#include <odb/post.hxx>
+
+#endif // ODB_QT_VERSION_HXX