diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2021-02-16 18:00:47 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2021-02-16 18:00:47 +0300 |
commit | 1d6aae4795a3e59ec4b416c0c3a22530a51fd471 (patch) | |
tree | 1818f56cd9ba7ad3dc0fee1b32ebc5d9f6a7f642 /include | |
parent | f1aa1b0e7895f82dad0b033f201a9a556ac99ae7 (diff) |
build: Fix compilation with clang-cl
Diffstat (limited to 'include')
-rw-r--r-- | include/common/attributes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/common/attributes.h b/include/common/attributes.h index 0683b50..5d6a3ff 100644 --- a/include/common/attributes.h +++ b/include/common/attributes.h @@ -116,8 +116,8 @@ # define dav1d_uninit(x) x #endif - #ifdef _MSC_VER - #include <intrin.h> +#if defined(_MSC_VER) && !defined(__clang__) +#include <intrin.h> static inline int ctz(const unsigned int mask) { unsigned long idx; |