Fix VS2015 syntax error with ZMQ_DEPRECATED macro.

This commit is contained in:
Sylvain Corlay 2020-10-05 12:26:00 +02:00
parent 07ac9fef63
commit c34d8eaaec

View File

@ -61,7 +61,7 @@
#define ZMQ_CPP17
#endif
#if defined(ZMQ_CPP14)
#if defined(ZMQ_CPP14) && !defined(_MSC_VER)
#define ZMQ_DEPRECATED(msg) [[deprecated(msg)]]
#elif defined(_MSC_VER)
#define ZMQ_DEPRECATED(msg) __declspec(deprecated(msg))