Magellan Linux

Contents of /trunk/xine-lib/patches/xine-lib-1.1.1-implicit-declarations.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 1613 byte(s)
-import

1 This patch allows building xine-lib with -Werror-implicit-function-declaration
2 flag, ensuring that all the functions have a proper declaration; this allows to
3 avoid further problems like the one related to aac files fixed in patch 180.
4 Index: xine-lib-1.1.1/src/input/libdvdnav/md5.c
5 ===================================================================
6 --- xine-lib-1.1.1.orig/src/input/libdvdnav/md5.c
7 +++ xine-lib-1.1.1/src/input/libdvdnav/md5.c
8 @@ -26,14 +26,8 @@
9
10 #include <sys/types.h>
11
12 -#if STDC_HEADERS || defined _LIBC
13 -# include <stdlib.h>
14 -# include <string.h>
15 -#else
16 -# ifndef HAVE_MEMCPY
17 -# define memcpy(d, s, n) bcopy ((s), (d), (n))
18 -# endif
19 -#endif
20 +#include <stdlib.h>
21 +#include <string.h>
22
23 #include "md5.h"
24 /* #include "unlocked-io.h" */
25 Index: xine-lib-1.1.1/src/liba52/a52.h
26 ===================================================================
27 --- xine-lib-1.1.1.orig/src/liba52/a52.h
28 +++ xine-lib-1.1.1/src/liba52/a52.h
29 @@ -58,6 +58,5 @@ void a52_dynrng (a52_state_t * state,
30 sample_t (* call) (sample_t, void *), void * data);
31 int a52_block (a52_state_t * state);
32 void a52_free (a52_state_t * state);
33 -uint16_t crc16_block(uint8_t *data,uint32_t num_bytes);
34
35 #endif /* A52_H */
36 Index: xine-lib-1.1.1/src/liba52/xine_decoder.c
37 ===================================================================
38 --- xine-lib-1.1.1.orig/src/liba52/xine_decoder.c
39 +++ xine-lib-1.1.1/src/liba52/xine_decoder.c
40 @@ -69,6 +69,8 @@
41 int a52file;
42 #endif
43
44 +uint16_t crc16_block(uint8_t *data,uint32_t num_bytes);
45 +
46 typedef struct {
47 audio_decoder_class_t decoder_class;
48 config_values_t *config;