From: Brad Date: Sat, 17 Jan 2009 12:52:28 +0000 (+0000) Subject: Changes the PowerPC ppccommon.h header so it no longer checks for a particular X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=201f7ad8ad50ff460f79cb44e0bee6aebbf039ca;p=x264.git Changes the PowerPC ppccommon.h header so it no longer checks for a particular OS such as Linux but instead looks for HAVE_ALTIVEC_H being set. Fixes all *BSD/PowerPC builds. --- diff --git a/common/ppc/ppccommon.h b/common/ppc/ppccommon.h index a3d18b50..7c878859 100644 --- a/common/ppc/ppccommon.h +++ b/common/ppc/ppccommon.h @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA. *****************************************************************************/ -#ifdef SYS_LINUX +#ifdef HAVE_ALTIVEC_H #include #endif diff --git a/configure b/configure index eb510919..599b1050 100755 --- a/configure +++ b/configure @@ -263,7 +263,7 @@ case $host_cpu in then ALTIVECFLAGS="$ALTIVECFLAGS -faltivec -fastf -mcpu=G4" else - ALTIVECFLAGS="$ALTIVECFLAGS -maltivec -mabi=altivec" + ALTIVECFLAGS="$ALTIVECFLAGS -maltivec -mabi=altivec -DHAVE_ALTIVEC_H" fi ;; sparc)