summaryrefslogtreecommitdiff
path: root/odb/odb/generator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-05-01 07:00:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-05-01 07:00:44 +0200
commit5e8f2c7e0357b770adee8a46801fa7dd2dedb94c (patch)
tree8b63e370cd3c59ef460542da96369b9e0457e484 /odb/odb/generator.cxx
parentcfeda89f300b23dcf95abb431bd54020b6a27a53 (diff)
Go back to comparing compiler/runtime interface versions
Diffstat (limited to 'odb/odb/generator.cxx')
-rw-r--r--odb/odb/generator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/odb/odb/generator.cxx b/odb/odb/generator.cxx
index 6348234..f0b92ab 100644
--- a/odb/odb/generator.cxx
+++ b/odb/odb/generator.cxx
@@ -519,8 +519,12 @@ generate (options const& ops,
//
hxx << "#include <odb/version.hxx>" << endl
<< endl
+#if 1
+ << "#if ODB_VERSION != " << ODB_VERSION << "UL" << endl
+#else
<< "#if LIBODB_VERSION_FULL != " << ODB_COMPILER_VERSION << "ULL || \\" << endl
<< " LIBODB_SNAPSHOT != " << ODB_COMPILER_SNAPSHOT << "ULL" << endl
+#endif
<< "#error ODB runtime version mismatch" << endl
<< "#endif" << endl
<< endl;