Bug 485291 - Make liboggplay's config.h pick up NSPR's endianness defines. r=chris.double

--HG--
extra : rebase_source : d0004501bfa82afa7f8c8b16f6315f10323795d2
This commit is contained in:
Matthew Gregan 2009-04-04 19:21:15 +13:00
Родитель d8a691c637
Коммит ad16f7d230
4 изменённых файлов: 27 добавлений и 0 удалений

Просмотреть файл

@ -12,3 +12,5 @@ The following local patches have been applied:
bug485291_yuv_align: only use optimized YUV routines if video dimensions are a multiple of the
optimized routine's supported alignment.
endian: pick up NSPR's little/big endian defines in oggplay's config.h.

Просмотреть файл

@ -0,0 +1,18 @@
diff --git a/media/liboggplay/src/liboggplay/config.h b/media/liboggplay/src/liboggplay/config.h
--- a/media/liboggplay/src/liboggplay/config.h
+++ b/media/liboggplay/src/liboggplay/config.h
@@ -102,8 +102,14 @@
# ifndef WORDS_BIGENDIAN
/* # undef WORDS_BIGENDIAN */
# endif
#endif
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
#undef HAVE_GLUT
+
+#include "prcpucfg.h"
+#ifdef IS_BIG_ENDIAN
+#define WORDS_BIGENDIAN
+#endif
+

Просмотреть файл

@ -107,3 +107,9 @@
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
#undef HAVE_GLUT
#include "prcpucfg.h"
#ifdef IS_BIG_ENDIAN
#define WORDS_BIGENDIAN
#endif

Просмотреть файл

@ -45,4 +45,5 @@ sed 's/#include <config.h>/#ifdef WIN32\
rm ./src/liboggplay/oggplay_private.h1
sed s/\#ifdef\ HAVE_INTTYPES_H/\#if\ HAVE_INTTYPES_H/g $1/src/liboggplay/oggplay_data.c >./src/liboggplay/oggplay_data.c
patch -p3 < bug485291_yuv_align.patch
patch -p3 < endian.patch