From ef8db789a1c97152e84ff03c9a7f6e1e77d95981 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 9 Oct 2010 07:53:24 +0200 Subject: 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 --- src/zmq.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/zmq.cpp') 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_) -- cgit v1.2.3