Skip to content

Commit 78b741b

Browse files
committed
Merge pull request #36 from hintjens/master
Updated version number for 4.0.2
2 parents d743dda + ba7c065 commit 78b741b

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

include/zmq.h

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@
2828
#ifndef __ZMQ_H_INCLUDED__
2929
#define __ZMQ_H_INCLUDED__
3030

31+
/* Version macros for compile-time API version detection */
32+
#define ZMQ_VERSION_MAJOR 4
33+
#define ZMQ_VERSION_MINOR 0
34+
#define ZMQ_VERSION_PATCH 2
35+
36+
#define ZMQ_MAKE_VERSION(major, minor, patch) \
37+
((major) * 10000 + (minor) * 100 + (patch))
38+
#define ZMQ_VERSION \
39+
ZMQ_MAKE_VERSION(ZMQ_VERSION_MAJOR, ZMQ_VERSION_MINOR, ZMQ_VERSION_PATCH)
40+
3141
#ifdef __cplusplus
3242
extern "C" {
3343
#endif
@@ -78,23 +88,6 @@ typedef unsigned __int8 uint8_t;
7888
#endif
7989

8090

81-
/******************************************************************************/
82-
/* 0MQ versioning support. */
83-
/******************************************************************************/
84-
85-
/* Version macros for compile-time API version detection */
86-
#define ZMQ_VERSION_MAJOR 4
87-
#define ZMQ_VERSION_MINOR 0
88-
#define ZMQ_VERSION_PATCH 1
89-
90-
#define ZMQ_MAKE_VERSION(major, minor, patch) \
91-
((major) * 10000 + (minor) * 100 + (patch))
92-
#define ZMQ_VERSION \
93-
ZMQ_MAKE_VERSION(ZMQ_VERSION_MAJOR, ZMQ_VERSION_MINOR, ZMQ_VERSION_PATCH)
94-
95-
/* Run-time API version detection */
96-
ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
97-
9891
/******************************************************************************/
9992
/* 0MQ errors. */
10093
/******************************************************************************/
@@ -165,6 +158,9 @@ ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
165158
#define ETERM (ZMQ_HAUSNUMERO + 53)
166159
#define EMTHREAD (ZMQ_HAUSNUMERO + 54)
167160

161+
/* Run-time API version detection */
162+
ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
163+
168164
/* This function retrieves the errno as it is known to 0MQ library. The goal */
169165
/* of this function is to make the code 100% portable, including where 0MQ */
170166
/* compiled with certain CRT library (on Windows) is linked to an */

0 commit comments

Comments
 (0)