]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/speex.patch
*Contribs: Yet another x264 patch
[vlc] / extras / contrib / src / Patches / speex.patch
1 diff -ruN speex-1.1.12/libspeex/kiss_fft.h speex/libspeex/kiss_fft.h
2 --- speex-1.1.12/libspeex/kiss_fft.h    2005-12-22 12:14:33.000000000 +0100
3 +++ speex/libspeex/kiss_fft.h   2006-07-26 15:38:39.000000000 +0200
4 @@ -5,7 +5,7 @@
5  #include <stdio.h>
6  #include <math.h>
7  #include <memory.h>
8 -#include <malloc.h>
9 +//#include <malloc.h>
10  
11  #ifdef __cplusplus
12  extern "C" {
13 diff -ruN speex-1.1.12/libspeex/stack_alloc.h speex/libspeex/stack_alloc.h
14 --- speex-1.1.12/libspeex/stack_alloc.h 2006-01-31 23:25:10.000000000 +0100
15 +++ speex/libspeex/stack_alloc.h        2006-07-26 15:38:04.000000000 +0200
16 @@ -109,7 +109,7 @@
17  
18  #endif
19  
20 -#if defined(VAR_ARRAYS)
21 +#if defined(VAR_ARRAYS)  && !( defined(__GNUC__) && __GNUC__ < 3 )
22  #define VARDECL(var) 
23  #define ALLOC(var, size, type) type var[size]
24  #elif defined(USE_ALLOCA)
25 diff -ruN speex-1.1.12/Makefile.am speex/Makefile.am
26 --- speex-1.1.12/Makefile.am    2005-11-23 12:42:56.000000000 +0100
27 +++ speex/Makefile.am   2006-07-26 15:38:04.000000000 +0200
28 @@ -13,9 +13,9 @@
29  EXTRA_DIST = Speex.spec Speex.spec.in Speex.kdevelop speex.m4 speex.pc.in README.blackfin README.symbian README.TI-DSP
30  
31  #Fools KDevelop into including all files
32 -SUBDIRS = libspeex include @src@ doc win32 symbian ti
33 +SUBDIRS = libspeex include doc win32 symbian ti
34  
35 -DIST_SUBDIRS = libspeex include src doc win32 symbian ti
36 +DIST_SUBDIRS = libspeex include doc win32 symbian ti
37  
38  rpm: dist
39         rpmbuild -ta ${PACKAGE}-${VERSION}.tar.gz
40 diff -ruN speex-1.1.12/Makefile.in speex/Makefile.in
41 --- speex-1.1.12/Makefile.in    2006-02-10 11:13:16.000000000 +0100
42 +++ speex/Makefile.in   2006-07-26 15:38:04.000000000 +0200
43 @@ -194,8 +194,8 @@
44  EXTRA_DIST = Speex.spec Speex.spec.in Speex.kdevelop speex.m4 speex.pc.in README.blackfin README.symbian README.TI-DSP
45  
46  #Fools KDevelop into including all files
47 -SUBDIRS = libspeex include @src@ doc win32 symbian ti
48 -DIST_SUBDIRS = libspeex include src doc win32 symbian ti
49 +SUBDIRS = libspeex include doc win32 symbian ti
50 +DIST_SUBDIRS = libspeex include doc win32 symbian ti
51  all: config.h
52         $(MAKE) $(AM_MAKEFLAGS) all-recursive
53