changeset 25328:6f0309e575e0

There is a check for altivec.h in configure so use the preprocessor directive set by configure instead of an OS-specific directive when #including altivec.h.
author diego
date Tue, 11 Dec 2007 20:16:00 +0000
parents a7b716b53e9f
children 676e2ace8a46
files liba52/imdct.c liba52/liba52_changes.diff liba52/resample_altivec.c mp3lib/dct64_altivec.c
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liba52/imdct.c	Tue Dec 11 20:07:18 2007 +0000
+++ b/liba52/imdct.c	Tue Dec 11 20:16:00 2007 +0000
@@ -367,7 +367,7 @@
 
 #ifdef HAVE_ALTIVEC
 
-#ifndef SYS_DARWIN
+#ifdef HAVE_ALTIVEC_H
 #include <altivec.h>
 #endif
 
--- a/liba52/liba52_changes.diff	Tue Dec 11 20:07:18 2007 +0000
+++ b/liba52/liba52_changes.diff	Tue Dec 11 20:16:00 2007 +0000
@@ -1548,7 +1548,7 @@
  
 +#ifdef HAVE_ALTIVEC
 +
-+#ifndef SYS_DARWIN
++#ifdef HAVE_ALTIVEC_H
 +#include <altivec.h>
 +#endif
 +
--- a/liba52/resample_altivec.c	Tue Dec 11 20:07:18 2007 +0000
+++ b/liba52/resample_altivec.c	Tue Dec 11 20:16:00 2007 +0000
@@ -1,7 +1,7 @@
 // this code is based on a52dec/libao/audio_out_oss.c
 // AltiVec support Copyright (c) 2004 Romain Dolbeau <romain@dolbeau.org>
 
-#ifndef SYS_DARWIN
+#ifdef HAVE_ALTIVEC_H
 #include <altivec.h>
 #endif
 
--- a/mp3lib/dct64_altivec.c	Tue Dec 11 20:07:18 2007 +0000
+++ b/mp3lib/dct64_altivec.c	Tue Dec 11 20:16:00 2007 +0000
@@ -11,7 +11,7 @@
 
 #include "mpg123.h"
 
-#ifndef SYS_DARWIN
+#ifdef HAVE_ALTIVEC_H
 #include <altivec.h>
 #endif