[MPlayer-dev-eng] [PATCH] small linux/altivec compile fix in postproc/
Luca Barbato
lu_zero at gentoo.org
Fri Jun 4 11:25:58 CEST 2004
Romain Dolbeau wrote:
> This small patch fix a compile bug under linux.
> The macro used is the same that's used everywhere
> else.
>
> 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);
>
gcc-3.4 will complain about that cast, you can either avoid the casts at
all or add the const keyword in the cast too.
Not sure if not casting at all would make gcc-apple unhappy but on
gcc-fsf it is the suggested way.
lu
--
Luca Barbato
Developer
Gentoo Linux http://www.gentoo.org/~lu_zero
More information about the MPlayer-dev-eng
mailing list