# HG changeset patch # User michael # Date 1086343236 0 # Node ID 79a2af950cf723810cd62f24f13120e490517d9d # Parent 834e7844ab3b2c37614b2644d20105457c48740b small linux/altivec compile fix in postproc/ by (Romain Dolbeau ) diff -r 834e7844ab3b -r 79a2af950cf7 postproc/swscale_altivec_template.c --- a/postproc/swscale_altivec_template.c Thu Jun 03 13:30:55 2004 +0000 +++ b/postproc/swscale_altivec_template.c Fri Jun 04 10:00:36 2004 +0000 @@ -21,17 +21,15 @@ */ #ifdef CONFIG_DARWIN -static const vector signed int vzero = - (vector signed int)(0, 0, 0, 0); -static const vector unsigned int altivec_vectorShiftInt19 = - (vector unsigned int)(19, 19, 19, 19); +#define AVV(x...) (x) #else +#define AVV(x...) {x} +#endif + static const vector signed int vzero = - (vector signed int){0,0,0,0}; + (const vector signed int)AVV(0, 0, 0, 0); static const vector unsigned int altivec_vectorShiftInt19 = - (vector unsigned int){19, 19, 19, 19}; - -#endif + (const vector unsigned int)AVV(19, 19, 19, 19); static inline void altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) {