Unbreak build on Apple with GCC: do not use clangism

Fixes: https://github.com/greg7mdp/parallel-hashmap/issues/192
This commit is contained in:
Sergey Fedorov
2023-05-16 20:04:53 +08:00
parent 0e534ee7e0
commit 47ee627eab
+1 -1
View File
@@ -154,7 +154,7 @@
// -------------------------------------------------------------------
#ifdef PHMAP_HAVE_THREAD_LOCAL
#error PHMAP_HAVE_THREAD_LOCAL cannot be directly set
#elif defined(__APPLE__)
#elif defined(__APPLE__) && !defined(__GNUC__)
#if __has_feature(cxx_thread_local) && \
!(TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0)
#define PHMAP_HAVE_THREAD_LOCAL 1