From 8f60343cb7f33277515c3b1b25d1e90e53477556 Mon Sep 17 00:00:00 2001
From: Mitya Selivanov <0x7fffff@guattari.ru>
Date: Tue, 16 Aug 2022 05:19:53 +0400
Subject: test

---
 source/kit/c11/threads.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'source')

diff --git a/source/kit/c11/threads.h b/source/kit/c11/threads.h
index f0a398a..2083429 100644
--- a/source/kit/c11/threads.h
+++ b/source/kit/c11/threads.h
@@ -75,7 +75,11 @@
  * C++11 and above already have thread_local keyword
  */
 #  ifndef thread_local
-#    define thread_local _Thread_local
+#    if _MSC_VER
+#      define thread_local __declspec(thread)
+#    else
+#      define thread_local _Thread_local
+#    endif
 #  endif
 #endif
 
-- 
cgit v1.2.3