]> git.lyx.org Git - features.git/blobdiff - src/Paragraph.cpp
Clarify the status of thread local storage on OSX
[features.git] / src / Paragraph.cpp
index 3da74d7ff7e777b94b2debe3fd44cb0bae7bc7aa..e497a85ae60e3672baa1426c839727d9854ee8ed 100644 (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)