Merge pull request #447 from SylvainCorlay/vs2015-syntax-error

Fix VS 2015 syntax error with macro
This commit is contained in:
Simon Giesecke
2020-10-05 14:48:18 +02:00
committed by GitHub

View File

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