xine-lib: apply buffer.h_ansi.patch

This commit is contained in:
Danny Rawlins 2008-10-28 10:17:54 +11:00
parent c3e405434c
commit beb7d6b8b9
3 changed files with 19 additions and 3 deletions

View File

@ -1 +1,2 @@
9e9f5a29df48b0acd6ea69d60fdb2391 xine-lib-1.1.15-buffer.h_ansi.patch
42a2b4893b7f892eb334de2fc36d49c8 xine-lib-1.1.15.tar.bz2

View File

@ -6,11 +6,14 @@
name=xine-lib
version=1.1.15
release=1
source=(http://dl.sourceforge.net/sourceforge/xine/xine-lib-$version.tar.bz2)
release=2
source=(http://dl.sourceforge.net/sourceforge/xine/$name-$version.tar.bz2
$name-1.1.15-buffer.h_ansi.patch)
build() {
cd xine-lib-$version
cd $name-$version
patch -p 1 -i $SRC/$name-1.1.15-buffer.h_ansi.patch
./configure \
CFLAGS='' \

View File

@ -0,0 +1,12 @@
diff -pruN xine-lib-1.1.15.orig/src/xine-engine/buffer.h xine-lib-1.1.15/src/xine-engine/buffer.h
--- xine-lib-1.1.15.orig/src/xine-engine/buffer.h 2008-10-28 10:07:08.620047335 +1100
+++ xine-lib-1.1.15/src/xine-engine/buffer.h 2008-10-28 10:08:27.215048039 +1100
@@ -676,7 +676,7 @@ void _x_bmiheader_le2me( xine_bmiheader
/* convert xine_waveformatex struct from little endian */
void _x_waveformatex_le2me( xine_waveformatex *wavex ) XINE_PROTECTED;
-static inline _x_is_fourcc(void *ptr, void *tag) {
+static __inline int _x_is_fourcc(void *ptr, void *tag) {
return memcmp(ptr, tag, 4) == 0;
}