From aab34ca0c5bbffd06aaa3718151ef1662860da3a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 28 Feb 2004 15:03:53 +0000 Subject: Metrowerks CodeWarrior patches by (John Dalgliesh ) Originally committed as revision 2823 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ppc/gcc_fixes.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'libavcodec/ppc/gcc_fixes.h') diff --git a/libavcodec/ppc/gcc_fixes.h b/libavcodec/ppc/gcc_fixes.h index a8e92cb2f1..13d4ff12e7 100644 --- a/libavcodec/ppc/gcc_fixes.h +++ b/libavcodec/ppc/gcc_fixes.h @@ -12,7 +12,11 @@ #endif #ifdef CONFIG_DARWIN -#define AVV(x...) (x) +# ifndef __MWERKS__ +# define AVV(x...) (x) +# else +# define AVV +# endif #else #define AVV(x...) {x} #if (__GNUC__ * 100 + __GNUC_MINOR__ < 303) @@ -81,4 +85,10 @@ __ch (__bin_args_eq (vector unsigned int, (a1), vector unsigned int, (a2)), \ #endif /* CONFIG_DARWIN */ +#ifndef __MWERKS__ +#define const_vector const vector +#else +#define const_vector vector +#endif + #endif /* _GCC_FIXES_ */ -- cgit v1.2.3