Don't include <immintrin.h> if it is not needed

Some environments provide <wmmintrin.h> but not <immintrin.h>
This commit is contained in:
Frank Denis 2016-05-26 06:08:26 -07:00
parent fa4e4bf174
commit 9c12da0362

View File

@ -15,14 +15,15 @@
#include "runtime.h" #include "runtime.h"
#include "utils.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))) (defined(_MSC_VER) && _MSC_VER >= 1600 && (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86)))
#pragma GCC target("ssse3") #pragma GCC target("ssse3")
#pragma GCC target("aes") #pragma GCC target("aes")
#pragma GCC target("pclmul") #pragma GCC target("pclmul")
#include <immintrin.h> #include <tmmintrin.h>
#include <wmmintrin.h>
#ifndef ENOSYS #ifndef ENOSYS
# define ENOSYS ENXIO # define ENOSYS ENXIO