From 58ceca5f19d2d33f2d60f442935aa66757ac3415 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 22 Feb 2012 09:43:03 +0100 Subject: Compilation problem solved --- pixman/pixman/pixman-mmx.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pixman/pixman/pixman-mmx.c b/pixman/pixman/pixman-mmx.c index 5744984fe..3d632e757 100644 --- a/pixman/pixman/pixman-mmx.c +++ b/pixman/pixman/pixman-mmx.c @@ -56,7 +56,7 @@ _mm_empty (void) } #endif -#ifdef USE_X86_MMX +#if defined __GNUC__ && defined USE_X86_MMX /* We have to compile with -msse to use xmmintrin.h, but that causes SSE * instructions to be generated that we don't want. Just duplicate the * functions we want to use. */ @@ -82,11 +82,15 @@ _mm_shuffle_pi16 (__m64 __A, int8_t const __N) return ret; } -#endif #define _MM_SHUFFLE(fp3,fp2,fp1,fp0) \ (((fp3) << 6) | ((fp2) << 4) | ((fp1) << 2) | (fp0)) +#else +#include /* for _mm_shuffle_pi16 and _MM_SHUFFLE */ +#include /* for SSE2 intrinsics */ +#endif + /* Notes about writing mmx code * * give memory operands as the second operand. If you give it as the -- cgit v1.2.3