diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-10-09 07:53:24 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-10-09 07:53:24 +0200 |
commit | ef8db789a1c97152e84ff03c9a7f6e1e77d95981 (patch) | |
tree | b221d9757817e1da995b9b14b7b2637d330ab21c /src | |
parent | 79aea5ffa61f969ec66205f7c9c8c1611a2fd8da (diff) |
Version macros added
Macro ZMQ_VERSION represents the current version of 0MQ
Macro ZMQ_MAKE_VERSION(major,minor,patch) allows to create
a representation of the specified version.
The versions can be compared using simple <, >, ==, etc.
operators.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/zmq.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp index f3ccaac..5770e04 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -57,9 +57,9 @@ void zmq_version (int *major_, int *minor_, int *patch_) { - *major_ = PACKAGE_VERSION_MAJOR; - *minor_ = PACKAGE_VERSION_MINOR; - *patch_ = PACKAGE_VERSION_PATCH; + *major_ = ZMQ_VERSION_MAJOR; + *minor_ = ZMQ_VERSION_MINOR; + *patch_ = ZMQ_VERSION_PATCH; } const char *zmq_strerror (int errnum_) |