* lib/threads.in.h (thread_local): Don't define as a macro in C++ 11
or newer.
+2024-08-28 Bruno Haible <bruno@clisp.org>
+
+ threads-h: Don't override the C++ keyword 'thread_local'.
+ * lib/threads.in.h (thread_local): Don't define as a macro in C++ 11
+ or newer.
+
2024-08-27 Bruno Haible <bruno@clisp.org>
mcel: Fix compilation error with MSVC.
its expansion ends in a semicolon. */
# undef thread_local
#endif
-#if !@HAVE_THREADS_H@ || !defined thread_local
+#if (!@HAVE_THREADS_H@ || !defined thread_local) \
+ && !(defined __cplusplus \
+ && (__cplusplus >= 201103L || (defined _MSC_VER && _MSC_VER >= 1900)))
# define thread_local _Thread_local
#endif
/* Define the macro thread_local if and only if it actually works. */