diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-11 20:16:00 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-11 20:16:00 +0000 |
commit | 24af96f8cc436fd84cd89dcc715961dacb6ad368 (patch) | |
tree | 13698971c8fca418c8b3e4405cd35911f8a705a4 /liba52 | |
parent | 17981e0ab6d90f19352615f47f352df7992a6f1c (diff) | |
download | mpv-24af96f8cc436fd84cd89dcc715961dacb6ad368.tar.bz2 mpv-24af96f8cc436fd84cd89dcc715961dacb6ad368.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25356 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'liba52')
-rw-r--r-- | liba52/imdct.c | 2 | ||||
-rw-r--r-- | liba52/liba52_changes.diff | 2 | ||||
-rw-r--r-- | liba52/resample_altivec.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/liba52/imdct.c b/liba52/imdct.c index 686252dfea..a8a5815cb1 100644 --- a/liba52/imdct.c +++ b/liba52/imdct.c @@ -367,7 +367,7 @@ void imdct_do_512 (sample_t * data, sample_t * delay, sample_t bias) #ifdef HAVE_ALTIVEC -#ifndef SYS_DARWIN +#ifdef HAVE_ALTIVEC_H #include <altivec.h> #endif diff --git a/liba52/liba52_changes.diff b/liba52/liba52_changes.diff index 76ae4a9453..4eaed68ff0 100644 --- a/liba52/liba52_changes.diff +++ b/liba52/liba52_changes.diff @@ -1548,7 +1548,7 @@ +#ifdef HAVE_ALTIVEC + -+#ifndef SYS_DARWIN ++#ifdef HAVE_ALTIVEC_H +#include <altivec.h> +#endif + diff --git a/liba52/resample_altivec.c b/liba52/resample_altivec.c index 9e32cf61ed..3cf633d16c 100644 --- a/liba52/resample_altivec.c +++ b/liba52/resample_altivec.c @@ -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 |