mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-29 15:34:09 +02:00
ZMQ_DEPRECATED doesn't fallback for unrecognized compiler
If you use a compiler outside of _MSC_VER and _GNUC__, then the if-else check doesn't provide a fallback for ZMQ_DEPRECATED macro which leads to a build failure. Specifically in my case , I am using Oracle's SunPro 5.13.0. My suggestions is to fallback to noop in case you don't recognize a compiler.
This commit is contained in:
parent
e0314c959e
commit
6f8a1805a5
2
zmq.hpp
2
zmq.hpp
@ -67,6 +67,8 @@
|
|||||||
#define ZMQ_DEPRECATED(msg) __declspec(deprecated(msg))
|
#define ZMQ_DEPRECATED(msg) __declspec(deprecated(msg))
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#define ZMQ_DEPRECATED(msg) __attribute__((deprecated(msg)))
|
#define ZMQ_DEPRECATED(msg) __attribute__((deprecated(msg)))
|
||||||
|
#else
|
||||||
|
#define ZMQ_DEPRECATED(msg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ZMQ_CPP17)
|
#if defined(ZMQ_CPP17)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user