From 30b967e2a439ce76b1141d34fa3c8ee9f87a88a8 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Thu, 11 Feb 2010 17:49:40 +0100 Subject: Integrate version numbering into autoconf configure.in is now the master source for the package version number, this propagates to src/platform.hpp (for zmq_version) and doc/Makefile.am (for documentation generation) automagically. --- src/config.hpp | 5 ----- src/zmq.cpp | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/config.hpp b/src/config.hpp index a0d5755..12e29ca 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -27,11 +27,6 @@ namespace zmq enum { - // Current version of 0MQ. - version_major = 0, - version_minor = 0, - version_patch = 0, - // Number of new messages in message pipe needed to trigger new memory // allocation. Setting this parameter to 256 decreases the impact of // memory allocation by approximately 99.6% diff --git a/src/zmq.cpp b/src/zmq.cpp index 609c8f2..e6f1a61 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -52,9 +52,9 @@ void zmq_version (int *major_, int *minor_, int *patch_) { - *major_ = zmq::version_major; - *minor_ = zmq::version_minor; - *patch_ = zmq::version_patch; + *major_ = PACKAGE_VERSION_MAJOR; + *minor_ = PACKAGE_VERSION_MINOR; + *patch_ = PACKAGE_VERSION_PATCH; } const char *zmq_strerror (int errnum_) -- cgit v1.2.3