diff --git a/src/ciphers/aes/aes_desc.c b/src/ciphers/aes/aes_desc.c index 61d9f7b7..1c08c713 100644 --- a/src/ciphers/aes/aes_desc.c +++ b/src/ciphers/aes/aes_desc.c @@ -15,7 +15,7 @@ #define LTC_S_X86_CPUID static LTC_INLINE void s_x86_cpuid(int* regs, int leaf) { -#if defined _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) // MSVC but not ClangCL __cpuid(regs, leaf); #else int a, b, c, d; diff --git a/src/encauth/gcm/gcm_gf_mult.c b/src/encauth/gcm/gcm_gf_mult.c index fb694a73..1053071b 100644 --- a/src/encauth/gcm/gcm_gf_mult.c +++ b/src/encauth/gcm/gcm_gf_mult.c @@ -33,7 +33,7 @@ #define LTC_S_X86_CPUID static LTC_INLINE void s_x86_cpuid(int* regs, int leaf) { -#if defined _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) // MSVC but not ClangCL __cpuid(regs, leaf); #else int a, b, c, d; diff --git a/src/hashes/sha1_desc.c b/src/hashes/sha1_desc.c index 56e73135..9eaad262 100644 --- a/src/hashes/sha1_desc.c +++ b/src/hashes/sha1_desc.c @@ -28,7 +28,7 @@ const struct ltc_hash_descriptor sha1_desc = #define LTC_S_X86_CPUID static LTC_INLINE void s_x86_cpuid(int* regs, int leaf) { -#if defined _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) // MSVC but not ClangCL __cpuid(regs, leaf); #else int a, b, c, d; diff --git a/src/hashes/sha2/sha224_desc.c b/src/hashes/sha2/sha224_desc.c index abdd5507..3269ff98 100644 --- a/src/hashes/sha2/sha224_desc.c +++ b/src/hashes/sha2/sha224_desc.c @@ -33,7 +33,7 @@ const struct ltc_hash_descriptor sha224_desc = #define LTC_S_X86_CPUID static LTC_INLINE void s_x86_cpuid(int* regs, int leaf) { -#if defined _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) // MSVC but not ClangCL __cpuid(regs, leaf); #else int a, b, c, d; diff --git a/src/hashes/sha2/sha256_desc.c b/src/hashes/sha2/sha256_desc.c index f3cecc33..02b9b0aa 100644 --- a/src/hashes/sha2/sha256_desc.c +++ b/src/hashes/sha2/sha256_desc.c @@ -8,7 +8,7 @@ #define LTC_S_X86_CPUID static LTC_INLINE void s_x86_cpuid(int* regs, int leaf) { -#if defined _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) // MSVC but not ClangCL __cpuid(regs, leaf); #else int a, b, c, d;