[MPlayer-cvslog] r25356 - in trunk: liba52/imdct.c liba52/liba52_changes.diff liba52/resample_altivec.c mp3lib/dct64_altivec.c

diego subversion at mplayerhq.hu
Tue Dec 11 21:16:01 CET 2007


Author: diego
Date: Tue Dec 11 21:16:00 2007
New Revision: 25356

Log:
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.


Modified:
   trunk/liba52/imdct.c
   trunk/liba52/liba52_changes.diff
   trunk/liba52/resample_altivec.c
   trunk/mp3lib/dct64_altivec.c

Modified: trunk/liba52/imdct.c
==============================================================================
--- trunk/liba52/imdct.c	(original)
+++ trunk/liba52/imdct.c	Tue Dec 11 21:16:00 2007
@@ -367,7 +367,7 @@ void imdct_do_512 (sample_t * data, samp
 
 #ifdef HAVE_ALTIVEC
 
-#ifndef SYS_DARWIN
+#ifdef HAVE_ALTIVEC_H
 #include <altivec.h>
 #endif
 

Modified: trunk/liba52/liba52_changes.diff
==============================================================================
--- trunk/liba52/liba52_changes.diff	(original)
+++ trunk/liba52/liba52_changes.diff	Tue Dec 11 21:16:00 2007
@@ -1548,7 +1548,7 @@
  
 +#ifdef HAVE_ALTIVEC
 +
-+#ifndef SYS_DARWIN
++#ifdef HAVE_ALTIVEC_H
 +#include <altivec.h>
 +#endif
 +

Modified: trunk/liba52/resample_altivec.c
==============================================================================
--- trunk/liba52/resample_altivec.c	(original)
+++ trunk/liba52/resample_altivec.c	Tue Dec 11 21:16:00 2007
@@ -1,7 +1,7 @@
 // this code is based on a52dec/libao/audio_out_oss.c
 // AltiVec support Copyright (c) 2004 Romain Dolbeau <romain at dolbeau.org>
 
-#ifndef SYS_DARWIN
+#ifdef HAVE_ALTIVEC_H
 #include <altivec.h>
 #endif
 

Modified: trunk/mp3lib/dct64_altivec.c
==============================================================================
--- trunk/mp3lib/dct64_altivec.c	(original)
+++ trunk/mp3lib/dct64_altivec.c	Tue Dec 11 21:16:00 2007
@@ -11,7 +11,7 @@
 
 #include "mpg123.h"
 
-#ifndef SYS_DARWIN
+#ifdef HAVE_ALTIVEC_H
 #include <altivec.h>
 #endif
 



More information about the MPlayer-cvslog mailing list