diff options
author | Antoine Jacoutot <ajacoutot@gnome.org> | 2014-01-20 15:44:09 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2014-05-23 17:47:42 +0200 |
commit | fa16f25ba6ecf92aa54b03b7ea25d1a87510cb52 (patch) | |
tree | 22bbdc60afe52af59cef540e7adaf6941c44338e | |
parent | 5a70f26dbdfcccb9ea889581ef8657ae15205214 (diff) |
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
-rw-r--r-- | gst/audioresample/resample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/audioresample/resample.c b/gst/audioresample/resample.c index 98d006ca6..481fa01b3 100644 --- a/gst/audioresample/resample.c +++ b/gst/audioresample/resample.c @@ -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 |