From f84d9a1aff681693c4a4ed39ae852d24c4c6bdd5 Mon Sep 17 00:00:00 2001 From: Bjoern Jacke Date: Mon, 27 Jan 2020 19:40:53 +0100 Subject: add support for local threads with studio and ibm compilers Signed-off-by: Bjoern Jacke --- lib/gthreads.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gthreads.h b/lib/gthreads.h index 8a4e9e444a..72bdb56ae9 100644 --- a/lib/gthreads.h +++ b/lib/gthreads.h @@ -29,7 +29,7 @@ * will see HAVE_THREADS_H, but won't be able to use _Thread_local. */ #if __STDC_VERSION__ >= 201112 && !defined(__STDC_NO_THREADS__) && defined(HAVE_THREADS_H) # include -#elif defined(__GNUC__) /* clang is also covered by __GNUC__ */ +#elif defined(__GNUC__) || defined(__SUNPRO_C) || defined(__xlC__) /* clang is covered by __GNUC__ */ # define _Thread_local __thread #elif defined(_MSC_VER) # define _Thread_local __declspec(thread) -- cgit v1.2.1