From 47ee627eab1663a76ae4066b4f7df8fef6a16c9d Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 16 May 2023 20:04:53 +0800 Subject: [PATCH] Unbreak build on Apple with GCC: do not use clangism Fixes: https://github.com/greg7mdp/parallel-hashmap/issues/192 --- parallel_hashmap/phmap_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parallel_hashmap/phmap_config.h b/parallel_hashmap/phmap_config.h index 0505e8d..06385f5 100644 --- a/parallel_hashmap/phmap_config.h +++ b/parallel_hashmap/phmap_config.h @@ -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