summaryrefslogtreecommitdiff
path: root/contrib/libmpcdec/diff_from_libmpcdec_1.2.5.patch
blob: f0e3b0cb6cfa713257355def5782d3554738ad7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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