aboutsummaryrefslogtreecommitdiff
path: root/brep/version
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-05 10:31:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-05 10:31:19 +0200
commit1d2117596f23b8606a17f74946a229944558d3a4 (patch)
tree690aa86adcb9e335b705a9601f6a6d778f74b718 /brep/version
parent7ef4c9bcf1873862d59d071af07be0679fb44054 (diff)
Prepare version header for automatic management by etc/version script
Diffstat (limited to 'brep/version')
-rw-r--r--brep/version20
1 files changed, 8 insertions, 12 deletions
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 <butl/version> // LIBBUTL_VERSION
#include <bpkg/version> // 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