audioresample: Fix build on x86 if emmintrin.h is available but can't be used

On i386, EMMINTRIN is defined but not usable without SSE so check for
__SSE__ and __SSE2__ as well.

https://bugzilla.gnome.org/show_bug.cgi?id=670690
This commit is contained in:
Antoine Jacoutot 2014-01-20 15:44:09 +01:00 committed by Sebastian Dröge
parent bf4a72a4e6
commit daa194b71e

View file

@ -77,13 +77,13 @@
#define EXPORT G_GNUC_INTERNAL
#ifdef _USE_SSE
#ifndef HAVE_XMMINTRIN_H
#if !defined(__SSE__) || !defined(HAVE_XMMINTRIN_H)
#undef _USE_SSE
#endif
#endif
#ifdef _USE_SSE2
#ifndef HAVE_EMMINTRIN_H
#if !defined(__SSE2__) || !defined(HAVE_XMMINTRIN_H)
#undef _USE_SSE2
#endif
#endif