summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2019-02-21 18:13:48 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-02-21 18:13:48 +0000
commitb4abf441ae1686fd602971dd0c0493a3c7e15fd1 (patch)
tree641475bf984f4ee3523312c4dc84ea6e274905ff /lib
parent15912b1f0f9a485948b7f34304a1b20d2182e26f (diff)
parent5b706ed92f7015efe9c675ad44c783366ca7e3ce (diff)
downloadgnutls-b4abf441ae1686fd602971dd0c0493a3c7e15fd1.tar.gz
Merge branch 'thread_local_msvc_fixed' into 'master'
lib: Provide _Thread_local on MSVC See merge request gnutls/gnutls!933
Diffstat (limited to 'lib')
-rw-r--r--lib/gthreads.h2
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