1 From daa194b71ea6f9e8ee522ab02e8c56150b7e62b3 Mon Sep 17 00:00:00 2001
2 From: Antoine Jacoutot <ajacoutot@gnome.org>
3 Date: Mon, 20 Jan 2014 15:44:09 +0100
4 Subject: [PATCH] audioresample: Fix build on x86 if emmintrin.h is available
7 On i386, EMMINTRIN is defined but not usable without SSE so check for
8 __SSE__ and __SSE2__ as well.
10 https://bugzilla.gnome.org/show_bug.cgi?id=670690
11 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
13 gst/audioresample/resample.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
16 diff --git a/gst/audioresample/resample.c b/gst/audioresample/resample.c
17 index 98d006c..481fa01 100644
18 --- a/gst/audioresample/resample.c
19 +++ b/gst/audioresample/resample.c
21 #define EXPORT G_GNUC_INTERNAL
24 -#ifndef HAVE_XMMINTRIN_H
25 +#if !defined(__SSE__) || !defined(HAVE_XMMINTRIN_H)
31 -#ifndef HAVE_EMMINTRIN_H
32 +#if !defined(__SSE2__) || !defined(HAVE_XMMINTRIN_H)