diff options
author | Martin Lucina <mato@kotelna.sk> | 2010-02-11 17:49:40 +0100 |
---|---|---|
committer | Martin Lucina <mato@kotelna.sk> | 2010-02-11 17:49:40 +0100 |
commit | 30b967e2a439ce76b1141d34fa3c8ee9f87a88a8 (patch) | |
tree | 96f1664ea42e8149877a0d2fa0078ba3e04545d8 /src | |
parent | 432fbd796bb4905fb19ceee802009b17e88e9256 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/config.hpp | 5 | ||||
-rw-r--r-- | src/zmq.cpp | 6 |
2 files changed, 3 insertions, 8 deletions
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_) |