Fixed threading issues for tcc backend

This commit is contained in:
Anatoly Galiulin 2016-03-04 13:01:17 +06:00
commit 0968771785
3 changed files with 52 additions and 1 deletions

View file

@ -108,6 +108,8 @@ __clang__
defined __SUNPRO_C || \
defined __xlC__
# define NIM_THREADVAR __thread
#elif defined __TINYC__
# defined NIM_THREADVAR
#else
# error "Cannot define NIM_THREADVAR"
#endif