From: Roland Stigge Date: Sun, 23 Mar 2014 16:29:37 +0000 (-0700) Subject: ppc: fix build on certain PowerPC variants without Altivec X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=e260ea549226ae29832d8bc0dcfd20cffc8cf248;p=x264.git ppc: fix build on certain PowerPC variants without Altivec --- diff --git a/common/cpu.c b/common/cpu.c index 13bc6e14..818993e7 100644 --- a/common/cpu.c +++ b/common/cpu.c @@ -338,6 +338,9 @@ uint32_t x264_cpu_detect( void ) uint32_t x264_cpu_detect( void ) { +#ifdef __NO_FPRS__ + return 0; +#else static void (*oldsig)( int ); oldsig = signal( SIGILL, sigill_handler ); @@ -357,6 +360,7 @@ uint32_t x264_cpu_detect( void ) signal( SIGILL, oldsig ); return X264_CPU_ALTIVEC; +#endif } #endif