diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-05-22 16:49:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-05-22 16:49:48 +0900 |
commit | 218e8bdcb0f52e83ef295eb1661d9b1494fbbbf4 () | |
tree | 2f8871eb1ae41a938be7436f741df07a3751023d /thread_pthread.h | |
parent | e79983a44885db24b82f25e6fc29def347dd1a9f (diff) |
Disable usage of TLS unless available
Thread-local storage is supported since Mac OS X 10.7. Enable TLS only when the target version is enough.
-rw-r--r-- | thread_pthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -92,7 +92,7 @@ struct rb_thread_sched { #if __STDC_VERSION__ >= 201112 #define RB_THREAD_LOCAL_SPECIFIER _Thread_local -#elif defined(__GNUC__) /* note that ICC (linux) and Clang are covered by __GNUC__ */ #define RB_THREAD_LOCAL_SPECIFIER __thread #else |