[x264-devel] commit: Changes the PowerPC ppccommon. h header so it no longer checks for a particular (Brad )

git version control git at videolan.org
Sat Jan 17 14:00:40 CET 2009


x264 | branch: master | Brad <brad at comstyle.com> | Sat Jan 17 12:52:28 2009 +0000| [201f7ad8ad50ff460f79cb44e0bee6aebbf039ca] | committer: Guillaume Poirier 

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.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=201f7ad8ad50ff460f79cb44e0bee6aebbf039ca
---

 common/ppc/ppccommon.h |    2 +-
 configure              |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/ppc/ppccommon.h b/common/ppc/ppccommon.h
index a3d18b5..7c87885 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 <altivec.h>
 #endif
 
diff --git a/configure b/configure
index eb51091..599b105 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)



More information about the x264-devel mailing list