mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Merge pull request #759 from hintjens/master
Moved version macros to top for better visibility
This commit is contained in:
commit
7c2c02862e
@ -28,6 +28,16 @@
|
|||||||
#ifndef __ZMQ_H_INCLUDED__
|
#ifndef __ZMQ_H_INCLUDED__
|
||||||
#define __ZMQ_H_INCLUDED__
|
#define __ZMQ_H_INCLUDED__
|
||||||
|
|
||||||
|
/* Version macros for compile-time API version detection */
|
||||||
|
#define ZMQ_VERSION_MAJOR 4
|
||||||
|
#define ZMQ_VERSION_MINOR 1
|
||||||
|
#define ZMQ_VERSION_PATCH 0
|
||||||
|
|
||||||
|
#define ZMQ_MAKE_VERSION(major, minor, patch) \
|
||||||
|
((major) * 10000 + (minor) * 100 + (patch))
|
||||||
|
#define ZMQ_VERSION \
|
||||||
|
ZMQ_MAKE_VERSION(ZMQ_VERSION_MAJOR, ZMQ_VERSION_MINOR, ZMQ_VERSION_PATCH)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -78,23 +88,6 @@ typedef unsigned __int8 uint8_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
/* 0MQ versioning support. */
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
/* Version macros for compile-time API version detection */
|
|
||||||
#define ZMQ_VERSION_MAJOR 4
|
|
||||||
#define ZMQ_VERSION_MINOR 1
|
|
||||||
#define ZMQ_VERSION_PATCH 0
|
|
||||||
|
|
||||||
#define ZMQ_MAKE_VERSION(major, minor, patch) \
|
|
||||||
((major) * 10000 + (minor) * 100 + (patch))
|
|
||||||
#define ZMQ_VERSION \
|
|
||||||
ZMQ_MAKE_VERSION(ZMQ_VERSION_MAJOR, ZMQ_VERSION_MINOR, ZMQ_VERSION_PATCH)
|
|
||||||
|
|
||||||
/* Run-time API version detection */
|
|
||||||
ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* 0MQ errors. */
|
/* 0MQ errors. */
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
@ -174,6 +167,9 @@ ZMQ_EXPORT int zmq_errno (void);
|
|||||||
/* Resolves system errors and 0MQ errors to human-readable string. */
|
/* Resolves system errors and 0MQ errors to human-readable string. */
|
||||||
ZMQ_EXPORT const char *zmq_strerror (int errnum);
|
ZMQ_EXPORT const char *zmq_strerror (int errnum);
|
||||||
|
|
||||||
|
/* Run-time API version detection */
|
||||||
|
ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch);
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* 0MQ infrastructure (a.k.a. context) initialisation & termination. */
|
/* 0MQ infrastructure (a.k.a. context) initialisation & termination. */
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user