[Pixman] [PATCH 2/3] ARM: do /proc/self/auxv based cpu features detection only in linux

Siarhei Siamashka siarhei.siamashka at gmail.com
Tue Jan 11 08:10:38 PST 2011


From: Siarhei Siamashka <siarhei.siamashka at nokia.com>

This method is linux-specific, but earlier it was tried for any platform
that did not have _MSC_VER defined.
---
 pixman/pixman-cpu.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/pixman/pixman-cpu.c b/pixman/pixman-cpu.c
index e4fb1e4..70253d1 100644
--- a/pixman/pixman-cpu.c
+++ b/pixman/pixman-cpu.c
@@ -244,7 +244,7 @@ pixman_have_arm_neon (void)
 
 #endif /* USE_ARM_NEON */
 
-#else /* linux ELF */
+#elif defined (__linux__) /* linux ELF */
 
 #include <stdlib.h>
 #include <unistd.h>
@@ -328,7 +328,12 @@ pixman_have_arm_neon (void)
 
 #endif /* USE_ARM_NEON */
 
-#endif /* linux */
+#else /* linux ELF */
+
+#define pixman_have_arm_simd() FALSE
+#define pixman_have_arm_neon() FALSE
+
+#endif
 
 #endif /* USE_ARM_SIMD || USE_ARM_NEON */
 
-- 
1.7.2.2



More information about the Pixman mailing list