aboutsummaryrefslogtreecommitdiff
path: root/src/threadpool-atomics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/threadpool-atomics.h')
-rw-r--r--src/threadpool-atomics.h2
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;