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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7e689680023e327de7e052e01e7faee30135799;p=libx264 ppc: fix build on certain PowerPC variants without Altivec --- diff --git a/common/cpu.c b/common/cpu.c index d5502ece..837de89f 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