From 5b706ed92f7015efe9c675ad44c783366ca7e3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Mon, 18 Feb 2019 09:37:04 +0100 Subject: lib: Provide _Thread_local on MSVC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hugo Beauzée-Luyssen --- lib/gthreads.h | 2 ++ 1 file changed, 2 insertions(+) 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 #elif defined(__GNUC__) # define _Thread_local __thread +#elif defined(_MSC_VER) +# define _Thread_local __declspec(thread) #else # error Unsupported platform #endif -- cgit v1.2.1