1 #ifndef INCLUDED_RTS_THREAD_LOCAL_H
2 #define INCLUDED_RTS_THREAD_LOCAL_H
5 # if __STDC_VERSION__ >= 201112 && !defined __STDC_NO_THREADS__
6 # define thread_local _Thread_local
7 # elif defined _WIN32 && ( \
11 defined __BORLANDC__ )
12 # define thread_local __declspec(thread)
14 # elif defined __GNUC__ || \
15 defined __SUNPRO_C || \
17 # define thread_local __thread
19 # error "Cannot define thread_local"