Le 05/06/2017 à 23:15, Enrico Forestieri a écrit :
commit 59c22bd7b604a3ba9e0e78f7c51cb601f08d0192 Author: Enrico Forestieri<[email protected]> Date: Mon Jun 5 23:14:48 2017 +0200Fix bugs #9598 and #10650 ---
+// gcc < 4.8.0 and msvc < 2015 do not support C++11 thread_local +#if defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ < 8) || __cplusplus < 201103L) +#define THREAD_LOCAL_STATIC static __thread +#elif defined(_MSC_VER) && ((_MSC_VER < 1900) || __cplusplus < 201103L) +#define THREAD_LOCAL_STATIC static __declspec(thread) +#else +#define THREAD_LOCAL_STATIC thread_local static +#endif +
According to Stephan in this discussion: https://www.mail-archive.com/[email protected]/msg196176.html it is unfortunately not possible to use thread_local on Mac before some time, it seems. I would actually be happy to hear the contrary. (Also, it had been decided that LyX requires msvc ≥ 2015 so the second branch would not be necessary.)
