]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
lib: Provide _Thread_local on MSVC
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Mon, 18 Feb 2019 08:37:04 +0000 (09:37 +0100)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 20 Feb 2019 10:38:16 +0000 (11:38 +0100)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
lib/gthreads.h

index 5887d46ba5bd7a7a5073f8dc3522302016f295a2..ec2e4db91c18652cfebc97d31dbeb94207f397ee 100644 (file)
@@ -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