summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/kit/c11/threads.h6
1 files changed, 5 insertions, 1 deletions
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