diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2020-01-28 09:47:06 +0000 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2020-01-28 09:47:06 +0000 |
commit | a11282d2877c9d45b7e2efc73b6bb3d104404489 (patch) | |
tree | 7a1ef978c2dc51bccfb6605cf1a41ba8189fe5d1 | |
parent | 25eb1dfa7a84b4fe465c4fe333f95e6eb8a9325f (diff) | |
parent | f84d9a1aff681693c4a4ed39ae852d24c4c6bdd5 (diff) | |
download | gnutls-a11282d2877c9d45b7e2efc73b6bb3d104404489.tar.gz |
Merge branch 'localthreads' into 'master'
add support for local threads with studio and ibm compilers
See merge request gnutls/gnutls!1181
-rw-r--r-- | lib/gthreads.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <threads.h> -#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) |