ARM: do /proc/self/auxv based cpu features detection only in linux
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Tue, 11 Jan 2011 12:36:24 +0000 (14:36 +0200)
committerSiarhei Siamashka <siarhei.siamashka@nokia.com>
Sun, 16 Jan 2011 21:40:38 +0000 (23:40 +0200)
This method is linux specific, but earlier it was tried for any platform
that did not have _MSC_VER macro defined.

pixman/pixman-cpu.c

index e4fb1e4..70253d1 100644 (file)
@@ -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 */