summaryrefslogtreecommitdiff
path: root/thread_pthread.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-05-22 16:49:48 +0900
committerNobuyoshi Nakada <[email protected]>2022-05-22 16:49:48 +0900
commit218e8bdcb0f52e83ef295eb1661d9b1494fbbbf4 ()
tree2f8871eb1ae41a938be7436f741df07a3751023d /thread_pthread.h
parente79983a44885db24b82f25e6fc29def347dd1a9f (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.h2
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