From 2c416a793ea781273a5da6742211f5f01af13a2b Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Mon, 23 Jan 2012 08:53:29 +0100 Subject: Imported Upstream version 2.0.10 --- include/zmq.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/zmq.h') 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); /******************************************************************************/ -- cgit v1.2.3