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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/ppc/gcc_fixes.h b/libavcodec/ppc/gcc_fixes.h
index 855a5b4f7b..653378d5bc 100644
--- a/libavcodec/ppc/gcc_fixes.h
+++ b/libavcodec/ppc/gcc_fixes.h
@@ -13,9 +13,15 @@
#ifdef CONFIG_DARWIN
#define AVV(x...) (x)
+/* The Apple assembler shipped w/ gcc-3.3 knows about DCBZL, previous assemblers don't
+ We assume here that the Darwin GCC is from Apple.... */
+#if (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
+#define NO_DCBZL
+#endif
#else
#define AVV(x...) {x}
-
+/* I don't think any non-Apple assembler knows about DCBZL */
+#define NO_DCBZL
#if (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
/* This code was provided to me by Bartosch Pixa