diff --git a/src/libsodium/sodium/runtime.c b/src/libsodium/sodium/runtime.c index 8ecb7fe6..6e98f21b 100644 --- a/src/libsodium/sodium/runtime.c +++ b/src/libsodium/sodium/runtime.c @@ -149,7 +149,7 @@ _sodium_runtime_intel_cpu_features(CPUFeatures * const cpu_features) if ((cpu_info[2] & (CPUID_ECX_AVX | CPUID_ECX_XSAVE | CPUID_ECX_OSXSAVE)) == (CPUID_ECX_AVX | CPUID_ECX_XSAVE | CPUID_ECX_OSXSAVE)) { uint32_t xcr0 = 0U; -# ifdef _MSC_VER +# if defined(_MSC_VER) && defined(_M_IX86) __asm { xor ecx, ecx _asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0