aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-08-24 15:04:00 +0000
committerDiego Biurrun <diego@biurrun.de>2007-08-24 15:04:00 +0000
commit8008a04325236d6b6e0b3ae1c9c2a28c68668696 (patch)
tree34a6c8a4f9e48b5dda8dec84789e86bf60a10428 /libavutil
parent08f87a9c99b4625135f31bb25e018ba5505d7f07 (diff)
downloadffmpeg-8008a04325236d6b6e0b3ae1c9c2a28c68668696.tar.gz
Move Apple gcc AltiVec vector declaration syntax to libavutil.
Originally committed as revision 10207 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 58c5aa8696..702301612c 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -50,6 +50,13 @@
#endif
#endif
+/* Use Apple-specific AltiVec syntax for vector declarations when necessary. */
+#ifdef __APPLE_CC__
+#define AVV(x...) (x)
+#else
+#define AVV(x...) {x}
+#endif
+
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif