]> git.pld-linux.org Git - packages/ooh323c.git/blob - ooh323c-no-common.patch
- added no-common patch (fix build/usage with -fno-common, gcc 10 default); release 2
[packages/ooh323c.git] / ooh323c-no-common.patch
1 --- ooh323c-0.9.3/media/ooCommon.h.orig 2010-07-28 18:49:36.000000000 +0200
2 +++ ooh323c-0.9.3/media/ooCommon.h      2020-09-26 08:16:06.488409130 +0200
3 @@ -51,7 +51,7 @@
4  #define OOLOG5(a,b,c,d,e)         ooLog(a,b,c,d,e)
5  #define OOLOG9(a,b,c,d,e,f,g,h,i) ooLog(a,b,c,d,e,f,g,h,i)
6  
7 -FILE *fpLog;
8 +extern FILE *fpLog;
9  
10  /**
11   * This function logs a trace message into a log file.
12 --- ooh323c-0.9.3/media/oomedialx.h.orig        2010-07-28 18:49:36.000000000 +0200
13 +++ ooh323c-0.9.3/media/oomedialx.h     2020-09-26 08:16:34.709901574 +0200
14 @@ -35,9 +35,9 @@
15   * @{
16   */
17  /** Global handle to open sound device */
18 -int ghSoundDevice;
19 +extern int ghSoundDevice;
20  /** Global handle to open raw audio data file */
21 -int ghSndFile;
22 +extern int ghSndFile;
23  
24  /** Opens a RAW audio data file for read. 
25   * @param filename  Name of the file to be opened.
26 --- ooh323c-0.9.3/tests/player/oosndrtp.h.orig  2010-07-28 18:49:36.000000000 +0200
27 +++ ooh323c-0.9.3/tests/player/oosndrtp.h       2020-09-26 08:17:05.854881955 +0200
28 @@ -84,9 +84,9 @@
29  
30  /* Media API */
31  #ifdef _WIN32
32 -HMODULE media;
33 +extern HMODULE media;
34  #else
35 -void * media;
36 +extern void * media;
37  #endif
38  
39  
40 --- ooh323c-0.9.3/tests/player/oosndrtp.c.orig  2010-07-28 18:49:36.000000000 +0200
41 +++ ooh323c-0.9.3/tests/player/oosndrtp.c       2020-09-26 08:18:23.949011826 +0200
42 @@ -17,6 +17,11 @@
43  #include "oosndrtp.h"
44  #include "ooCommon.h"
45  
46 +#ifdef _WIN32
47 +HMODULE media;
48 +#else
49 +void * media;
50 +#endif
51  
52  static MediaAPI_CreateTxRTPChan   FuncPtr_CreateTxRTPChan = 0;
53  static MediaAPI_CloseTxRTPChan    FuncPtr_CloseTxRTPChan = 0;
54 --- ooh323c-0.9.3/tests/receiver/oosndrtp.h.orig        2010-07-28 18:49:37.000000000 +0200
55 +++ ooh323c-0.9.3/tests/receiver/oosndrtp.h     2020-09-26 08:22:39.419188585 +0200
56 @@ -84,9 +84,9 @@
57  
58  /* Media API */
59  #ifdef _WIN32
60 -HMODULE media;
61 +extern HMODULE media;
62  #else
63 -void * media;
64 +extern void * media;
65  #endif
66  
67  
68 --- ooh323c-0.9.3/tests/receiver/oosndrtp.c.orig        2010-07-28 18:49:37.000000000 +0200
69 +++ ooh323c-0.9.3/tests/receiver/oosndrtp.c     2020-09-26 09:12:55.938679955 +0200
70 @@ -17,6 +17,11 @@
71  #include "oosndrtp.h"
72  #include "ooCommon.h"
73  
74 +#ifdef _WIN32
75 +HMODULE media;
76 +#else
77 +void * media;
78 +#endif
79  
80  static MediaAPI_CreateTxRTPChan   FuncPtr_CreateTxRTPChan = 0;
81  static MediaAPI_CloseTxRTPChan    FuncPtr_CloseTxRTPChan = 0;
82 --- ooh323c-0.9.3/tests/simple/oosndrtp.h.orig  2010-07-28 18:49:37.000000000 +0200
83 +++ ooh323c-0.9.3/tests/simple/oosndrtp.h       2020-09-26 09:14:02.622199904 +0200
84 @@ -84,9 +84,9 @@
85  
86  /* Media API */
87  #ifdef _WIN32
88 -HMODULE media;
89 +extern HMODULE media;
90  #else
91 -void * media;
92 +extern void * media;
93  #endif
94  
95  
96 --- ooh323c-0.9.3/tests/simple/oosndrtp.c.orig  2010-07-28 18:49:37.000000000 +0200
97 +++ ooh323c-0.9.3/tests/simple/oosndrtp.c       2020-09-26 09:13:53.231704219 +0200
98 @@ -17,6 +17,11 @@
99  #include "oosndrtp.h"
100  #include "ooCommon.h"
101  
102 +#ifdef _WIN32
103 +HMODULE media;
104 +#else
105 +void * media;
106 +#endif
107  
108  static MediaAPI_CreateTxRTPChan   FuncPtr_CreateTxRTPChan = 0;
109  static MediaAPI_CloseTxRTPChan    FuncPtr_CloseTxRTPChan = 0;
This page took 0.217152 seconds and 3 git commands to generate.