Merge pull request #553 from gin-ahirsch/gcc-non14-constexpr

Suppress ZMQ_EXTENDED_CONSTEXPR on gcc with partial C++14 support
This commit is contained in:
Gudmundur Adalsteinsson 2022-05-10 13:05:26 +00:00 committed by GitHub
commit 26362337a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@
#define ZMQ_CONSTEXPR_VAR const
#define ZMQ_CPP11_DEPRECATED(msg)
#endif
#if defined(ZMQ_CPP14) && (!defined(_MSC_VER) || _MSC_VER > 1900)
#if defined(ZMQ_CPP14) && (!defined(_MSC_VER) || _MSC_VER > 1900) && (!defined(__GNUC__) || __GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ > 3))
#define ZMQ_EXTENDED_CONSTEXPR
#endif
#if defined(ZMQ_CPP17)