PROTON-522: Apache Qpid Proton on Mac/OSX
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/43e49f69 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/43e49f69 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/43e49f69 Branch: refs/heads/master Commit: 43e49f69cda68afc948a8d9081084dea70cb960c Parents: e9480cb Author: Andrew Stitcher <astitc...@apache.org> Authored: Fri Nov 10 15:43:42 2017 -0500 Committer: Andrew Stitcher <astitc...@apache.org> Committed: Thu Nov 23 03:50:41 2017 -0500 ---------------------------------------------------------------------- proton-c/bindings/cpp/include/proton/internal/config.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/43e49f69/proton-c/bindings/cpp/include/proton/internal/config.hpp ---------------------------------------------------------------------- diff --git a/proton-c/bindings/cpp/include/proton/internal/config.hpp b/proton-c/bindings/cpp/include/proton/internal/config.hpp index 9af12c2..42de663 100644 --- a/proton-c/bindings/cpp/include/proton/internal/config.hpp +++ b/proton-c/bindings/cpp/include/proton/internal/config.hpp @@ -33,6 +33,16 @@ /// default. Otherwise they can be enabled or disabled separately /// with -D on the compile line. +/// The Apple clang compiler doesn't really support PN_CPP_HAS_THREAD_LOCAL +/// before Xcode 8 even though it claims to be C++11 compatible +#if defined(__clang__) && defined(__apple_build_version__) && ((__clang_major__ * 100) + __clang_minor__) >= 301 +#if __has_feature(cxx_thread_local) +#define PN_CPP_HAS_THREAD_LOCAL 1 +#else +#define PN_CPP_HAS_THREAD_LOCAL 0 +#endif +#endif + #ifndef PN_CPP_HAS_CPP11 #if defined(__cplusplus) && __cplusplus >= 201103 #define PN_CPP_HAS_CPP11 1 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org