From 1d2117596f23b8606a17f74946a229944558d3a4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Jan 2016 10:31:19 +0200 Subject: Prepare version header for automatic management by etc/version script --- brep/version | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'brep/version') diff --git a/brep/version b/brep/version index 8bcca9b..5f6f6d7 100644 --- a/brep/version +++ b/brep/version @@ -2,7 +2,7 @@ // copyright : Copyright (c) 2014-2015 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file -#ifndef LIBBREP_VERSION // Note: using the version macro itself. +#ifndef BREP_VERSION // Note: using the version macro itself. #include // LIBBUTL_VERSION #include // LIBBPKG_VERSION @@ -23,29 +23,25 @@ // 2.2.0-a1 02019901 // 3.0.0-b2 02999952 // -// AABBCCDD -#define LIBBREP_VERSION 10000 -#define LIBBREP_VERSION_STR "0.1.0" +#define BREP_VERSION 10000 +#define BREP_VERSION_STR "0.1.0" // For now these are the same. // -#define BREP_VERSION LIBBREP_VERSION -#define BREP_VERSION_STR LIBBREP_VERSION_STR +#define LIBBREP_VERSION BREP_VERSION +#define LIBBREP_VERSION_STR BREP_VERSION_STR // 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) +#if LIBBUTL_VERSION != 10000 # error incompatible libbutl version #endif -#if (LIBBPKG_VERSION < 10000 || \ - LIBBPKG_VERSION > 10000) +#if LIBBPKG_VERSION != 10000 # error incompatible libbpkg version #endif -#endif // LIBBREP_VERSION +#endif // BREP_VERSION -- cgit v1.1