From 6a07b88cdf6419440b19e7b7dbc9231519c32c62 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 31 Jan 2011 10:53:27 +0200 Subject: Initial Boost profile template --- odb/boost/version.hxx | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 odb/boost/version.hxx (limited to 'odb/boost/version.hxx') diff --git a/odb/boost/version.hxx b/odb/boost/version.hxx new file mode 100644 index 0000000..5a3d102 --- /dev/null +++ b/odb/boost/version.hxx @@ -0,0 +1,44 @@ +// file : odb/boost/version.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_BOOST_VERSION_HXX +#define ODB_BOOST_VERSION_HXX + +#include + +#include + +// 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 != 10100 +# error incompatible odb interface version detected +#endif + +// libodb-boost version: odb interface version plus the bugfix +// version. +// +#define LIBODB_BOOST_VERSION 1010000 +#define LIBODB_BOOST_VERSION_STR "1.1.0" + +#include + +#endif // ODB_BOOST_VERSION_HXX -- cgit v1.1