30 #ifndef ZMQPP_COMPATIBILITY_HPP_
31 #define ZMQPP_COMPATIBILITY_HPP_
37 #include "zmqpp_export.h"
43 #define ZMQPP_REQUIRED_ZMQ_MAJOR 2
44 #define ZMQPP_REQUIRED_ZMQ_MINOR 2
46 #if (ZMQ_VERSION_MAJOR < ZMQPP_REQUIRED_ZMQ_MAJOR) || ((ZMQ_VERSION_MAJOR == ZMQPP_REQUIRED_ZMQ_MAJOR) && (ZMQ_VERSION_MINOR < ZMQPP_REQUIRED_ZMQ_MINOR))
47 #error zmqpp requires a later version of 0mq
51 #if (ZMQ_VERSION_MAJOR == 3) && (ZMQ_VERSION_MINOR == 0)
52 #define ZMQ_EXPERIMENTAL_LABELS
56 #if defined(__GNUC__) && !defined(__clang__)
60 #if __GNUC_MINOR__ < 4
61 #define ZMQPP_COMPARABLE_ENUM enum
64 #if __GNUC_MINOR__ == 4
65 #if __GNUC_PATCHLEVEL__ < 1
66 #undef ZMQPP_COMPARABLE_ENUM
67 #define ZMQPP_COMPARABLE_ENUM enum
72 #if __GNUC_MINOR__ < 5
73 #define ZMQPP_IGNORE_LAMBDA_FUNCTION_TESTS
74 #define ZMQPP_EXPLICITLY_DELETED
78 #if __GNUC_MINOR__ < 6
87 #define NOEXCEPT throw()
89 # define ZMQPP_NO_CONSTEXPR
92 #define ZMQPP_EXPLICITLY_DELETED
96 #define ZMQPP_IGNORE_LAMBDA_FUNCTION_TESTS
97 #define ZMQPP_COMPARABLE_ENUM enum
102 #ifndef ZMQPP_COMPARABLE_ENUM
103 #define ZMQPP_COMPARABLE_ENUM enum class
106 #ifndef ZMQPP_EXPLICITLY_DELETED
107 #define ZMQPP_EXPLICITLY_DELETED = delete
110 #if __cplusplus >= 201300
112 #define ZMQPP_DEPRECATED(reason) [[deprecated(#reason)]]
114 #define ZMQPP_DEPRECATED(reason) __attribute__ ((deprecated))
115 #elif defined(_MSC_VER)
116 #define ZMQPP_DEPRECATED(reason) __declspec(deprecated(#reason))
118 #define ZMQPP_DEPRECATED(reason)
122 #define NOEXCEPT noexcept
C++ wrapper around zmq.
Definition: actor.cpp:30
int raw_socket_t
Definition: compatibility.hpp:134