Skip to content

Commit

Permalink
Apple OS X clang does not support thread_local keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
khizmax committed Mar 17, 2015
1 parent 11bdbbb commit ab7328b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cds/compiler/clang/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@
#define CDS_NOEXCEPT_SUPPORT_(expr) noexcept(expr)

// C++11 thread_local keyword
#define CDS_CXX11_THREAD_LOCAL_SUPPORT
#if !(CDS_OS_TYPE == CDS_OS_OSX && CDS_COMPILER_VERSION < 30600)
// OS X error?
// See http://stackoverflow.com/questions/23791060/c-thread-local-storage-clang-503-0-40-mac-osx
// http://stackoverflow.com/questions/28094794/why-does-apple-clang-disallow-c11-thread-local-when-official-clang-supports
// clang 3.6 ok?..
# define CDS_CXX11_THREAD_LOCAL_SUPPORT
#endif

// Full SFINAE support
#define CDS_CXX11_SFINAE
Expand Down

0 comments on commit ab7328b

Please sign in to comment.