diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-05-22 16:49:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-05-22 16:49:48 +0900 |
commit | 218e8bdcb0f52e83ef295eb1661d9b1494fbbbf4 (patch) | |
tree | 2f8871eb1ae41a938be7436f741df07a3751023d /thread_pthread.h | |
parent | e79983a44885db24b82f25e6fc29def347dd1a9f (diff) | |
download | ruby-218e8bdcb0f52e83ef295eb1661d9b1494fbbbf4.tar.gz |
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.
Diffstat (limited to 'thread_pthread.h')
-rw-r--r-- | thread_pthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.h b/thread_pthread.h index cc1675b77c..b5314082d5 100644 --- a/thread_pthread.h +++ b/thread_pthread.h @@ -92,7 +92,7 @@ struct rb_thread_sched { #if __STDC_VERSION__ >= 201112 #define RB_THREAD_LOCAL_SPECIFIER _Thread_local -#elif defined(__GNUC__) +#elif defined(__GNUC__) && !defined(RB_THREAD_LOCAL_SPECIFIER_IS_UNSUPPORTED) /* note that ICC (linux) and Clang are covered by __GNUC__ */ #define RB_THREAD_LOCAL_SPECIFIER __thread #else |