--- include/grpc/impl/codegen/port_platform.h.orig 2023-08-12 14:29:01.000000000 +0800 +++ include/grpc/impl/codegen/port_platform.h 2023-08-12 14:44:01.000000000 +0800 @@ -242,9 +242,11 @@ #define GPR_CPU_POSIX 1 #define GPR_POSIX_CRASH_HANDLER 1 #endif -#if !(defined(__has_feature) && __has_feature(cxx_thread_local)) +#if defined(__has_feature) +#if __has_feature(cxx_thread_local) #define GPR_PTHREAD_TLS 1 #endif +#endif #define GPR_APPLE 1 #define GPR_GCC_ATOMIC 1 #define GPR_POSIX_LOG 1