From 255d624e508e29b452e567c249ac75ae8d8e2abe Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Tue, 11 Jan 2011 14:36:24 +0200 Subject: [PATCH] ARM: do /proc/self/auxv based cpu features detection only in linux 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 | 9 +++++++-- 1 file 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 #include @@ -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 */ -- 2.7.4