commit | c1a1d03a9b62fa63fa8d27cc097db7bf74cdd45f | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu Dec 09 11:20:53 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 15 11:36:42 2022 +0100 |
tree | 5beec21102fc825f2ebdc38f2b0321dfd78ecdb7 | |
parent | aac59c2ba53c60a0e2d31a4c0a75b776831ea187 [diff] |
MSVC: handle THREAD_LOCAL
diff --git a/src/common.h b/src/common.h index ebc142d..19b21b8 100644 --- a/src/common.h +++ b/src/common.h
@@ -38,6 +38,8 @@ defined __SUNPRO_C || \ defined __xlC__ # define THREAD_LOCAL __thread +#elif defined _MSC_VER +# define THREAD_LOCAL __declspec(thread) #else # error "Cannot define THREAD_LOCAL" #endif