diff options
Diffstat (limited to 'bpkg')
-rw-r--r-- | bpkg/version | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/bpkg/version b/bpkg/version index cccdc7d..95f57c2 100644 --- a/bpkg/version +++ b/bpkg/version @@ -4,6 +4,8 @@ #ifndef LIBBPKG_VERSION // Note: using the version macro itself. +#include <butl/version> // LIBBUTL_VERSION + // Version format is AABBCCDD where // // AA - major version number @@ -20,9 +22,19 @@ // 2.2.0-a1 02019901 // 3.0.0-b2 02999952 // - // AABBCCDD -#define LIBBPKG_VERSION 9901 -#define LIBBPKG_VERSION_STR "0.1.0-a1" +#define LIBBPKG_VERSION 10000 +#define LIBBPKG_VERSION_STR "0.1.0" + +// Generally, we expect minor versions to be source code backwards- +// compatible, thought we might have a minimum version requirement. +// +// Note: does not apply during early development. +// +// AABBCCDD +#if (LIBBUTL_VERSION < 10000 || \ + LIBBUTL_VERSION > 10000) +# error incompatible libbutl version +#endif #endif // LIBBPKG_VERSION |