# HG changeset patch # User diego # Date 1212149124 0 # Node ID 2aadf93028543c794bcb4dae276fa52d8bc6f6c7 # Parent 3aa8ad5202eac3f4c61c8ce976448a563a827055 Check for HAVE_ALTIVEC_VECTOR_BRACES instead of __APPLE_CC__. diff -r 3aa8ad5202ea -r 2aadf9302854 liba52/imdct.c --- 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) diff -r 3aa8ad5202ea -r 2aadf9302854 liba52/liba52_changes.diff --- 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) diff -r 3aa8ad5202ea -r 2aadf9302854 mp3lib/dct64_altivec.c --- 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)