summaryrefslogtreecommitdiff
path: root/contrib/libmpcdec/diff_from_libmpcdec_1.2.5.patch
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-11 10:09:16 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-11 10:09:16 +0200
commitaaa87d78d6e8fe7b1ddaa910f2657952f117529f (patch)
treedf7f07d70fa3f6b25998918bbc476b2b68b73101 /contrib/libmpcdec/diff_from_libmpcdec_1.2.5.patch
parent3325b9aa2a719ae200b18b8f44f0b2452c27d49d (diff)
downloadxine-lib-aaa87d78d6e8fe7b1ddaa910f2657952f117529f.tar.gz
xine-lib-aaa87d78d6e8fe7b1ddaa910f2657952f117529f.tar.bz2
Update libmpcdec (formerly libmusepack) to version 1.2.5, this also reduces the patching needed.
Contestually, move libmpcdec code in contrib/libmpcdec, so that it's not mixed together with xine code. The use of MUSEPACK_LIBS/MUSEPACK_CFLAGS intermediate is to make simpler move to pkg-config checks if libmpcdec developers decide to install one.
Diffstat (limited to 'contrib/libmpcdec/diff_from_libmpcdec_1.2.5.patch')
-rw-r--r--contrib/libmpcdec/diff_from_libmpcdec_1.2.5.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/libmpcdec/diff_from_libmpcdec_1.2.5.patch b/contrib/libmpcdec/diff_from_libmpcdec_1.2.5.patch
new file mode 100644
index 000000000..f0e3b0cb6
--- /dev/null
+++ b/contrib/libmpcdec/diff_from_libmpcdec_1.2.5.patch
@@ -0,0 +1,20 @@
+Use xine's os_types.h file.
+Define MPC_LITTLE_ENDIAN when needed.
+
+Index: libmpcdec/mpcdec/config_types.h
+===================================================================
+--- libmpcdec.orig/mpcdec/config_types.h
++++ libmpcdec/mpcdec/config_types.h
+@@ -35,7 +35,11 @@
+ #ifndef __MUSEPACK_CONFIG_TYPES_H__
+ #define __MUSEPACK_CONFIG_TYPES_H__
+
+-#include <inttypes.h>
++#include "os_types.h"
++
++#ifndef WORDS_BIGENDIAN
++# define MPC_LITTLE_ENDIAN
++#endif
+
+ typedef unsigned char mpc_bool_t;
+ #define TRUE 1