From e8b4e1c1c4f7ba4c84409fd162e675ad16930030 Mon Sep 17 00:00:00 2001
From: michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>
Date: Fri, 4 Jun 2004 10:00:36 +0000
Subject: [PATCH] small linux/altivec compile fix in postproc/ by (Romain
 Dolbeau <dolbeau at irisa dot fr>)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12533 b3059339-0415-0410-9bf9-f77b7e298cf2
---
 postproc/swscale_altivec_template.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/postproc/swscale_altivec_template.c b/postproc/swscale_altivec_template.c
index 5cd70683a5..b1608d4ced 100644
--- a/postproc/swscale_altivec_template.c
+++ b/postproc/swscale_altivec_template.c
@@ -21,18 +21,16 @@
 */
 
 #ifdef CONFIG_DARWIN
-static const vector signed int vzero =
-  (vector signed int)(0, 0, 0, 0);
-static const vector unsigned int altivec_vectorShiftInt19 =
-  (vector unsigned int)(19, 19, 19, 19);
+#define AVV(x...) (x)
 #else
-static const vector signed int vzero =
-  (vector signed int){0,0,0,0};
-static const vector unsigned int altivec_vectorShiftInt19 =
-  (vector unsigned int){19, 19, 19, 19};
-
+#define AVV(x...) {x}
 #endif
 
+static const vector signed int vzero =
+  (const vector signed int)AVV(0, 0, 0, 0);
+static const vector unsigned int altivec_vectorShiftInt19 =
+  (const vector unsigned int)AVV(19, 19, 19, 19);
+
 static inline void
 altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) {
   register int i;