From 6f8a1805a5169c1ec1e6a56c400bda4d9379b849 Mon Sep 17 00:00:00 2001 From: Ashish Jindal Date: Thu, 16 Sep 2021 13:36:41 -0400 Subject: [PATCH] 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. --- zmq.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zmq.hpp b/zmq.hpp index 8da9a2d..b755f41 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -67,6 +67,8 @@ #define ZMQ_DEPRECATED(msg) __declspec(deprecated(msg)) #elif defined(__GNUC__) #define ZMQ_DEPRECATED(msg) __attribute__((deprecated(msg))) +#else +#define ZMQ_DEPRECATED(msg) #endif #if defined(ZMQ_CPP17)