diff options
author | peterjc123 <peter_jiachen@163.com> | 2020-10-05 23:49:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 08:49:48 -0700 |
commit | fa75e65a58a5c70c09c30d17a1fe1c1dff1093ae (patch) | |
tree | 891b9b50d5a1f7adf3d57f94bacf233538d3a408 | |
parent | 029c88620802e1361ccf41d1970bd5b07fd6b7bb (diff) | |
download | pthreadpool-fa75e65a58a5c70c09c30d17a1fe1c1dff1093ae.tar.gz |
Fix MSVC build (#10)
Fix MSVC build
-rw-r--r-- | src/threadpool-atomics.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threadpool-atomics.h b/src/threadpool-atomics.h index f0ddd89..e6e4233 100644 --- a/src/threadpool-atomics.h +++ b/src/threadpool-atomics.h @@ -130,7 +130,7 @@ static inline void pthreadpool_fence_release() { __c11_atomic_thread_fence(__ATOMIC_RELEASE); } -#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) +#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && (!defined(_MSC_VER) || defined(__clang__)) #include <stdatomic.h> typedef _Atomic(uint32_t) pthreadpool_atomic_uint32_t; |