aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-02-22 09:43:03 +0100
committermarha <marha@users.sourceforge.net>2012-02-22 09:43:03 +0100
commit58ceca5f19d2d33f2d60f442935aa66757ac3415 (patch)
tree3238b894baf4a9ce41f4203878680c4f2ddefdf4
parentecc59cb52ffe4a84fddae997bba64adad35d5e93 (diff)
downloadvcxsrv-58ceca5f19d2d33f2d60f442935aa66757ac3415.tar.gz
vcxsrv-58ceca5f19d2d33f2d60f442935aa66757ac3415.tar.bz2
vcxsrv-58ceca5f19d2d33f2d60f442935aa66757ac3415.zip
Compilation problem solved
-rw-r--r--pixman/pixman/pixman-mmx.c8
1 files 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 <xmmintrin.h> /* for _mm_shuffle_pi16 and _MM_SHUFFLE */
+#include <emmintrin.h> /* for SSE2 intrinsics */
+#endif
+
/* Notes about writing mmx code
*
* give memory operands as the second operand. If you give it as the