diff --git a/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c b/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c index 98421525..715e1f5c 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c +++ b/src/libsodium/crypto_aead/aes256gcm/aead_aes256gcm.c @@ -48,7 +48,7 @@ crypto_aead_aes256gcm_keygen(unsigned char k[crypto_aead_aes256gcm_KEYBYTES]) } #if !((defined(HAVE_ARMCRYPTO) && defined(__GNUC__) && defined(NATIVE_LITTLE_ENDIAN)) || \ - (defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H))) + (defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H) && defined(__GNUC__))) #ifndef ENOSYS #define ENOSYS ENXIO diff --git a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c index 6e27c28f..2fa675ad 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -13,7 +13,7 @@ #include "runtime.h" #include "utils.h" -#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H) +#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H) && defined(__GNUC__) #ifdef __GNUC__ #pragma GCC target("ssse3")