Partially revert r270964. Don't test for C++11 to define _Thread_local.
In addition to Clang 3.3, it turns out that GCC 4.7 in Ports also does not support the _Thread_local keyword. Let's document this in a bit more detail. Reported by: antoine@
This commit is contained in:
parent
9152087ea7
commit
fef8cac0c4
@ -298,7 +298,12 @@
|
||||
#endif
|
||||
|
||||
#if !__has_extension(c_thread_local)
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201103L) || \
|
||||
/*
|
||||
* 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) || */ \
|
||||
__has_extension(cxx_thread_local)
|
||||
#define _Thread_local thread_local
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user