Mercurial > mplayer.hg
changeset 26895:2aadf9302854
Check for HAVE_ALTIVEC_VECTOR_BRACES instead of __APPLE_CC__.
author | diego |
---|---|
date | Fri, 30 May 2008 12:05:24 +0000 |
parents | 3aa8ad5202ea |
children | 4559d4a7c3cb |
files | liba52/imdct.c liba52/liba52_changes.diff mp3lib/dct64_altivec.c |
diffstat | 3 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/liba52/imdct.c Fri May 30 11:45:08 2008 +0000 +++ b/liba52/imdct.c Fri May 30 12:05:24 2008 +0000 @@ -382,10 +382,10 @@ #define WORD_s2 0x18,0x19,0x1a,0x1b #define WORD_s3 0x1c,0x1d,0x1e,0x1f -#ifdef __APPLE_CC__ +#ifdef HAVE_ALTIVEC_VECTOR_BRACES +#define AVV(x...) {x} +#else #define AVV(x...) (x) -#else -#define AVV(x...) {x} #endif #define vcprm(a,b,c,d) (const vector unsigned char)AVV(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d)
--- a/liba52/liba52_changes.diff Fri May 30 11:45:08 2008 +0000 +++ b/liba52/liba52_changes.diff Fri May 30 12:05:24 2008 +0000 @@ -1563,10 +1563,10 @@ +#define WORD_s2 0x18,0x19,0x1a,0x1b +#define WORD_s3 0x1c,0x1d,0x1e,0x1f + -+#ifdef __APPLE_CC__ ++#ifdef HAVE_ALTIVEC_VECTOR_BRACES ++#define AVV(x...) {x} ++#else +#define AVV(x...) (x) -+#else -+#define AVV(x...) {x} +#endif + +#define vcprm(a,b,c,d) (const vector unsigned char)AVV(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d)
--- a/mp3lib/dct64_altivec.c Fri May 30 11:45:08 2008 +0000 +++ b/mp3lib/dct64_altivec.c Fri May 30 12:05:24 2008 +0000 @@ -27,10 +27,10 @@ #define WORD_s2 0x18,0x19,0x1a,0x1b #define WORD_s3 0x1c,0x1d,0x1e,0x1f -#ifdef __APPLE_CC__ +#ifdef HAVE_ALTIVEC_VECTOR_BRACES +#define AVV(x...) {x} +#else #define AVV(x...) (x) -#else -#define AVV(x...) {x} #endif #define vcprm(a,b,c,d) (const vector unsigned char)AVV(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d)