From: kakaroto Date: Sun, 8 Jan 2012 07:22:01 +0000 (+0000) Subject: Evas: Do not build altivec feature if disabled in configure X-Git-Tag: 2.0_alpha~153^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2754ab1186e39b655a567b5adca7396ccf1d3631;p=framework%2Fuifw%2Fevas.git 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. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@66966 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/engines/common/evas_cpu.c b/src/lib/engines/common/evas_cpu.c index cff8b2b..fe90c5b 100644 --- a/src/lib/engines/common/evas_cpu.c +++ b/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);