* gcc fixes for altivec.
* Used to workaround broken gcc (FSF gcc-3 pre gcc-3.3)
* and to stay somewhat compatible with Darwin.
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _GCC_FIXES_
-#define _GCC_FIXES_
+#ifndef GCC_FIXES_H
+#define GCC_FIXES_H
#ifdef HAVE_ALTIVEC_H
#include <altivec.h>
#endif
-#ifdef CONFIG_DARWIN
-# ifndef __MWERKS__
-# define AVV(x...) (x)
-# else
+#ifdef SYS_DARWIN
+# ifdef __MWERKS__
# define AVV
# endif
+#define REG_v(a) asm ( #a )
#else
-#define AVV(x...) {x}
+
+#if (__GNUC__ < 4)
+# define REG_v(a)
+#else
+# define REG_v(a) asm ( #a )
+#endif
+
#if (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
/* This code was provided to me by Bartosch Pixa
#endif
-#endif /* CONFIG_DARWIN */
+#endif /* SYS_DARWIN */
#ifndef __MWERKS__
#define const_vector const vector
#define const_vector vector
#endif
-#endif /* _GCC_FIXES_ */
+#endif /* GCC_FIXES_H */