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
commit 03243ad64d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))