aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-06-21 15:48:48 +0000
committerWarner Losh <imp@FreeBSD.org>2024-06-21 15:53:07 +0000
commit5a969a3459e49efaf2ca1dc1d99895ddf04a5d02 (patch)
treef6ac769cfe77fb3c25dc9a85621a68900bed2b08
parent4a86b26b84be2888c70a04f216734bf1456ee766 (diff)
cdefs.h: Move to more regular _Thread_local define
Move to trusting C++ environment for thread local storage designation. Noticed by: brooks Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D45663
-rw-r--r--sys/sys/cdefs.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 419fc260f200..8809240ebbf3 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -213,12 +213,7 @@
#endif
#if !__has_extension(c_thread_local)
-/*
- * XXX: Some compilers (Clang 3.3, GCC 4.7) falsely announce C++11 mode
- * without actually supporting the thread_local keyword. Don't check for
- * the presence of C++11 when defining _Thread_local.
- */
-#if /* (defined(__cplusplus) && __cplusplus >= 201103L) || */ \
+#if (defined(__cplusplus) && __cplusplus >= 201103L) ||
__has_extension(cxx_thread_local)
#define _Thread_local thread_local
#else