commit | 8d6f14944d33b5d8e41ca5a10c2cce43cbe00406 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu Dec 09 11:20:53 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 16 12:12:03 2021 +0100 |
tree | 5beec21102fc825f2ebdc38f2b0321dfd78ecdb7 | |
parent | e182a27c4ebf4714c0c561186fbc3ef108e40156 [diff] [blame] |
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