summaryrefslogtreecommitdiff
path: root/audio/sox/patches/patch-ab
blob: 836b582a8814e7382ea271ce68949b014e947491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.10 2006/04/26 07:41:17 rillig Exp $

SunPro does not like extern inline functions that reference static
functions.

--- src/adpcm.c.orig	Tue Nov 23 00:07:37 2004
+++ src/adpcm.c	Wed Apr 26 09:29:21 2006
@@ -72,6 +72,7 @@ const short iCoef[7][2] = {
                         { 392,-232}
 };
 
+static
 inline st_sample_t AdpcmDecode(st_sample_t c, MsState_t *state,
                                st_sample_t sample1, st_sample_t sample2)
 {
@@ -303,6 +304,7 @@ static long ReAvgDelta(int ch, int chans
 
 #endif
 
+static
 inline void AdpcmMashChannel(
         int ch,             /* channel number to encode, REQUIRE 0 <= ch < chans  */
         int chans,          /* total channels */