summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Lucina <martin@lucina.net>2012-01-23 08:53:29 +0100
committerMartin Lucina <martin@lucina.net>2012-01-23 08:53:29 +0100
commit2c416a793ea781273a5da6742211f5f01af13a2b (patch)
treeb8ede23ec38d4aab9595a517b4b9894df40c2cae /include
parent5ba1cb20fe6f6699cef1cc726718e760cd4c9af1 (diff)
Imported Upstream version 2.0.10upstream/2.0.10
Diffstat (limited to 'include')
-rw-r--r--include/zmq.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/zmq.h b/include/zmq.h
index 90a73c2..1cb6c03 100644
--- a/include/zmq.h
+++ b/include/zmq.h
@@ -45,6 +45,17 @@ extern "C" {
/* 0MQ versioning support. */
/******************************************************************************/
+/* Version macros for compile-time API version detection */
+#define ZMQ_VERSION_MAJOR 2
+#define ZMQ_VERSION_MINOR 0
+#define ZMQ_VERSION_PATCH 10
+
+#define ZMQ_MAKE_VERSION(major, minor, patch) \
+ ((major) * 10000 + (minor) * 100 + (patch))
+#define ZMQ_VERSION \
+ ZMQ_MAKE_VERSION(ZMQ_VERSION_MAJOR, ZMQ_VERSION_MINOR, ZMQ_VERSION_PATCH)
+
+/* Run-time API version detection */
ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
/******************************************************************************/