From 9c12da0362d3c03a34a77586704d17a9a7ece672 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 26 May 2016 06:08:26 -0700 Subject: [PATCH] Don't include if it is not needed Some environments provide but not --- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 35eb9e6b..c87a2851 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -15,14 +15,15 @@ #include "runtime.h" #include "utils.h" -#if defined(HAVE_WMMINTRIN_H) || \ +#if (defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)) || \ (defined(_MSC_VER) && _MSC_VER >= 1600 && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86))) #pragma GCC target("ssse3") #pragma GCC target("aes") #pragma GCC target("pclmul") -#include +#include +#include #ifndef ENOSYS # define ENOSYS ENXIO