From 8c91b5b4935e9d72fb068f28f89589d8a3f81b21 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Sun, 8 Jan 2012 07:22:01 +0000 Subject: [PATCH] Evas: Do not build altivec feature if disabled in configure On macosx i386, that code fails because even though __VEC__ is defined, the compiler doesn't understand the 'vector' keyword (that macro is irrelevent here). So there was no way to make evas compile for ppc if altivec was not supported by the compiler. SVN revision: 66966 --- legacy/evas/src/lib/engines/common/evas_cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/evas/src/lib/engines/common/evas_cpu.c b/legacy/evas/src/lib/engines/common/evas_cpu.c index cff8b2b31d..fe90c5b636 100644 --- a/legacy/evas/src/lib/engines/common/evas_cpu.c +++ b/legacy/evas/src/lib/engines/common/evas_cpu.c @@ -74,6 +74,7 @@ evas_common_cpu_sse3_test(void) #endif } +#ifdef BUILD_ALTIVEC void evas_common_cpu_altivec_test(void) { @@ -85,6 +86,7 @@ evas_common_cpu_altivec_test(void) #endif /* __VEC__ */ #endif /* __POWERPC__ */ } +#endif /* BUILD_ALTIVEC */ void evas_common_cpu_neon_test(void) @@ -177,6 +179,7 @@ evas_common_cpu_init(void) #endif /* BUILD_SSE3 */ #endif /* BUILD_SSE */ #endif /* BUILD_MMX */ +#ifdef BUILD_ALTIVEC #ifdef __POWERPC__ #ifdef __VEC__ cpu_feature_mask |= CPU_FEATURE_ALTIVEC * @@ -186,6 +189,7 @@ evas_common_cpu_init(void) cpu_feature_mask &= ~CPU_FEATURE_ALTIVEC; #endif /* __VEC__ */ #endif /* __POWERPC__ */ +#endif /* BUILD_ALTIVEC */ #ifdef __SPARC__ cpu_feature_mask |= CPU_FEATURE_VIS * evas_common_cpu_feature_test(evas_common_cpu_vis_test);