You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2016/08/17 18:17:08 UTC

mesos git commit: Introduce MESOS_{MAJOR|MINOR|PATCH}_VERSION_NUM macros.

Repository: mesos
Updated Branches:
  refs/heads/master 1366abb0f -> 6bc6a40a5


Introduce MESOS_{MAJOR|MINOR|PATCH}_VERSION_NUM macros.

This makes version based conditional compiling much easier for
module writers.

Review: https://reviews.apache.org/r/50992/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6bc6a40a
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6bc6a40a
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/6bc6a40a

Branch: refs/heads/master
Commit: 6bc6a40a54491cfd733263cd3962e490b0b4bdbb
Parents: 1366abb
Author: Zhitao Li <zh...@gmail.com>
Authored: Wed Aug 17 09:34:27 2016 -0700
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Wed Aug 17 11:16:41 2016 -0700

----------------------------------------------------------------------
 include/mesos/version.hpp.in | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/6bc6a40a/include/mesos/version.hpp.in
----------------------------------------------------------------------
diff --git a/include/mesos/version.hpp.in b/include/mesos/version.hpp.in
index c8fbc82..63b6d95 100644
--- a/include/mesos/version.hpp.in
+++ b/include/mesos/version.hpp.in
@@ -21,10 +21,15 @@
 
 #define MESOS_VERSION "@PACKAGE_VERSION@"
 
+// TODO(zhitao): Change the string-valued macros to use integers
+// after a deprecation cycle started with 1.1.
 #define MESOS_MAJOR_VERSION "@MESOS_MAJOR_VERSION@"
+#define MESOS_MAJOR_VERSION_NUM @MESOS_MAJOR_VERSION@
 
 #define MESOS_MINOR_VERSION "@MESOS_MINOR_VERSION@"
+#define MESOS_MINOR_VERSION_NUM @MESOS_MINOR_VERSION@
 
 #define MESOS_PATCH_VERSION "@MESOS_PATCH_VERSION@"
+#define MESOS_PATCH_VERSION_NUM @MESOS_PATCH_VERSION@
 
 #endif // __MESOS_VERSION_HPP__