diff options
author | Martin Lucina <mato@kotelna.sk> | 2010-10-21 16:21:20 +0200 |
---|---|---|
committer | Martin Lucina <martin@lucina.net> | 2012-01-23 08:53:31 +0100 |
commit | 3f0085ddbef1a44b6bb7a0b23af497d56e0025fa (patch) | |
tree | 0adac3a5b31b2a1d9a89ec5a797f34c1a3fdf27a /include | |
parent | 90d73cba9cd1d1724f38ed82fc0eefb1781c9c20 (diff) | |
parent | 2c416a793ea781273a5da6742211f5f01af13a2b (diff) |
Imported Debian patch 2.0.10-1debian/2.0.10-1
Diffstat (limited to 'include')
-rw-r--r-- | include/zmq.h | 11 |
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); /******************************************************************************/ |