// file      : odb/version.hxx.in
// license   : GNU GPL v2; see accompanying LICENSE file

#ifndef LIBODB_VERSION // Note: using the version macro itself.

// New numeric version format is AAAAABBBBBCCCCCDDDE where:
//
// AAAAA - major version number
// BBBBB - minor version number
// CCCCC - bugfix version number
// DDD   - alpha / beta (DDD + 500) version number
// E     - final (0) / snapshot (1)
//
// When DDDE is not 0, 1 is subtracted from AAAAABBBBBCCCCC. For example:
//
// Version      AAAAABBBBBCCCCCDDDE
//
// 0.1.0        0000000001000000000
// 0.1.2        0000000001000020000
// 1.2.3        0000100002000030000
// 2.2.0-a.1    0000200001999990010
// 3.0.0-b.2    0000299999999995020
// 2.2.0-a.1.z  0000200001999990011
//
#define LIBODB_VERSION_FULL  $libodb.version.project_number$ULL
#define LIBODB_VERSION_STR   "$libodb.version.project$"
#define LIBODB_VERSION_ID    "$libodb.version.project_id$"

#define LIBODB_VERSION_MAJOR $libodb.version.major$
#define LIBODB_VERSION_MINOR $libodb.version.minor$
#define LIBODB_VERSION_PATCH $libodb.version.patch$

#define LIBODB_PRE_RELEASE   $libodb.version.pre_release$

#define LIBODB_SNAPSHOT      $libodb.version.snapshot_sn$ULL
#define LIBODB_SNAPSHOT_ID   "$libodb.version.snapshot_id$"


// Old/deprecated numeric 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
//

// ODB interface version: minor, major, and alpha/beta versions.
//
#define ODB_VERSION     20551
#define ODB_VERSION_STR "2.6-b.1"

// libodb version: interface version plus the bugfix version.
//
#define LIBODB_VERSION 2059951

#endif // LIBODB_VERSION
