diff options
author | Hugo Beauzée-Luyssen <hugo@beauzee.fr> | 2019-02-18 09:37:04 +0100 |
---|---|---|
committer | Hugo Beauzée-Luyssen <hugo@beauzee.fr> | 2019-02-19 09:55:07 +0100 |
commit | 12929f5ddfa5c7b2daec72d7c97223085175cd67 (patch) | |
tree | 641475bf984f4ee3523312c4dc84ea6e274905ff | |
parent | 15912b1f0f9a485948b7f34304a1b20d2182e26f (diff) | |
download | gnutls-thread_local_msvc.tar.gz |
lib: Provide _Thread_local on MSVCthread_local_msvc
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
-rw-r--r-- | lib/gthreads.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gthreads.h b/lib/gthreads.h index 5887d46ba5..ec2e4db91c 100644 --- a/lib/gthreads.h +++ b/lib/gthreads.h @@ -26,6 +26,8 @@ # include <threads.h> #elif defined(__GNUC__) # define _Thread_local __thread +#elif defined(_MSC_VER) +# define _Thread_local __declspec(thread) #else # error Unsupported platform #endif |