]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/liboil-ppc.patch
contribs: fixed liboil compilation on PPC machines
[vlc] / extras / contrib / src / Patches / liboil-ppc.patch
1 diff -ru liboil.orig/configure liboil/configure
2 --- liboil.orig/configure       2009-04-13 16:30:02.000000000 +0200
3 +++ liboil/configure    2009-04-13 16:30:58.000000000 +0200
4 @@ -11928,6 +11928,11 @@
5    HAVE_GCC_ASM_POWERPC_FPU_FALSE=
6  fi
7  
8 +if test "$build_os-$host_cpu" = "darwin9-powerpc" ; then                    
9 +        cat >>confdefs.h <<\_ACEOF
10 +        #define HAVE_SYMBOL_UNDERSCORE 1
11 +        _ACEOF  
12 +fi
13  
14  { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15  echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
16 diff -ru liboil.orig/examples/videoscale/vs_image.h liboil/examples/videoscale/vs_image.h
17 --- liboil.orig/examples/videoscale/vs_image.h  2009-04-13 16:30:03.000000000 +0200
18 +++ liboil/examples/videoscale/vs_image.h       2009-04-13 16:56:56.000000000 +0200
19 @@ -28,6 +28,7 @@
20  #ifndef __VS_IMAGE_H__
21  #define __VS_IMAGE_H__
22  
23 +#import <stdint.h>
24  #include <liboil/liboil-stdint.h>
25  
26  typedef struct _VSImage VSImage;
27 diff -ru liboil.orig/examples/videoscale/vs_scanline.h liboil/examples/videoscale/vs_scanline.h
28 --- liboil.orig/examples/videoscale/vs_scanline.h       2009-04-13 16:30:03.000000000 +0200
29 +++ liboil/examples/videoscale/vs_scanline.h    2009-04-13 16:57:24.000000000 +0200
30 @@ -28,6 +28,7 @@
31  #ifndef __VS_SCANLINE_H__
32  #define __VS_SCANLINE_H__
33  
34 +#import <stdint.h>
35  #include <liboil/liboil-stdint.h>
36  
37  void vs_scanline_downsample_Y (uint8_t *dest, uint8_t *src, int n);
38 diff -ru liboil.orig/liboil/c/wavelet.c liboil/liboil/c/wavelet.c
39 --- liboil.orig/liboil/c/wavelet.c      2009-04-13 16:30:03.000000000 +0200
40 +++ liboil/liboil/c/wavelet.c   2009-04-13 16:48:24.000000000 +0200
41 @@ -1,11 +1,9 @@
42  
43  #include <liboil/liboilfunction.h>
44  #include <liboil/liboilclasses.h>
45 +#import <stdint.h>
46  
47 -
48 -void
49 -multiply_and_acc_6xn_s16_u8_c (int16_t *i1, int is1, int16_t *s1,
50 -    int ss1, uint8_t *s2, int ss2, int n)
51 +void multiply_and_acc_6xn_s16_u8_c (int16_t *i1, int is1, int16_t *s1, int ss1, uint8_t *s2, int ss2, int n)
52  {
53    int j;
54    for(j=0;j<n;j++){
55 diff -ru liboil.orig/liboil/liboilfuncs.h liboil/liboil/liboilfuncs.h
56 --- liboil.orig/liboil/liboilfuncs.h    2009-04-13 16:30:03.000000000 +0200
57 +++ liboil/liboil/liboilfuncs.h 2009-04-13 16:50:35.000000000 +0200
58 @@ -30,6 +30,7 @@
59  #ifndef _LIBOIL_FUNCS_H_
60  #define _LIBOIL_FUNCS_H_
61  
62 +#import <stdint.h>
63  #include <liboil/liboiltypes.h>
64  
65  #ifdef __cplusplus
66 diff -ru liboil.orig/liboil/ref/addc.c liboil/liboil/ref/addc.c
67 --- liboil.orig/liboil/ref/addc.c       2009-04-13 16:30:03.000000000 +0200
68 +++ liboil/liboil/ref/addc.c    2009-04-13 16:49:57.000000000 +0200
69 @@ -1,4 +1,5 @@
70  
71 +#import <stdint.h>
72  #include <liboil/liboilfunction.h>
73  #include <liboil/liboiltest.h>
74  #include <liboil/liboilrandom.h>