[alsa-lib] use static's instead of extern's, as latter ones may result in linking...
[openwrt/svn-archive/archive.git] / libs / alsa-lib / patches / 003-mips-atomic-static-inline.patch
1 diff --git a/include/iatomic.h b/include/iatomic.h
2 index e92dbfd..364bc5c 100644
3 --- a/include/iatomic.h
4 +++ b/include/iatomic.h
5 @@ -720,7 +720,7 @@ typedef struct { volatile int counter; } atomic_t;
6 * Atomically adds @i to @v. Note that the guaranteed useful range
7 * of an atomic_t is only 24 bits.
8 */
9 -extern __inline__ void atomic_add(int i, atomic_t * v)
10 +static __inline__ void atomic_add(int i, atomic_t * v)
11 {
12 unsigned long temp;
13
14 @@ -744,7 +744,7 @@ extern __inline__ void atomic_add(int i, atomic_t * v)
15 * Atomically subtracts @i from @v. Note that the guaranteed
16 * useful range of an atomic_t is only 24 bits.
17 */
18 -extern __inline__ void atomic_sub(int i, atomic_t * v)
19 +static __inline__ void atomic_sub(int i, atomic_t * v)
20 {
21 unsigned long temp;
22
23 @@ -763,7 +763,7 @@ extern __inline__ void atomic_sub(int i, atomic_t * v)
24 /*
25 * Same as above, but return the result value
26 */
27 -extern __inline__ int atomic_add_return(int i, atomic_t * v)
28 +static __inline__ int atomic_add_return(int i, atomic_t * v)
29 {
30 unsigned long temp, result;
31
32 @@ -784,7 +784,7 @@ extern __inline__ int atomic_add_return(int i, atomic_t * v)
33 return result;
34 }
35
36 -extern __inline__ int atomic_sub_return(int i, atomic_t * v)
37 +static __inline__ int atomic_sub_return(int i, atomic_t * v)
38 {
39 unsigned long temp, result;
40