Problem: Build error with clang

Solution: Some compilers incorrectly define __GNUC__, added workaround for clang and icc.
This commit is contained in:
Gudmundur Adalsteinsson 2019-09-17 20:24:44 +00:00
parent b2fa1192bd
commit 34ea5b7805

View File

@ -124,7 +124,8 @@
#define ZMQ_DELETED_FUNCTION
#endif
#if defined(ZMQ_CPP11) && defined(__GNUC__) && __GNUC__ < 5
#if defined(ZMQ_CPP11) && !defined(__llvm__) && !defined(__INTEL_COMPILER) \
&& defined(__GNUC__) && __GNUC__ < 5
#define ZMQ_CPP11_PARTIAL
#endif