Clarify the status of thread local storage on OSX

The __thread local storage is supported on OSX since 10.7 (Lion),
released in 2012. For example, see:
http://forum.dlang.org/post/mailman.3439.1452269142.22025.digitalmars-d-bugs@puremagic.com
This commit is contained in:
Enrico Forestieri 2017-06-26 14:41:34 +02:00
parent 0a58035f84
commit 80f3f219b7

View File

@ -71,8 +71,8 @@
using namespace std;
using namespace lyx::support;
// gcc < 4.8.0 and msvc < 2015 do not support C++11 thread_local
#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ < 8
// OSX clang, gcc < 4.8.0, and msvc < 2015 do not support C++11 thread_local
#if defined(__APPLE__) || (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ < 8)
#define THREAD_LOCAL_STATIC static __thread
#elif defined(_MSC_VER) && (_MSC_VER < 1900)
#define THREAD_LOCAL_STATIC static __declspec(thread)