summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/gcc_fixes.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/ppc/gcc_fixes.h')
-rw-r--r--libavcodec/ppc/gcc_fixes.h12
1 files changed, 11 insertions, 1 deletions
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_ */