7ee7f4c84e
with SunPro, inline functions can't call static functions unless they are also inline. fixes build on Solaris.
22 lines
493 B
Text
22 lines
493 B
Text
$NetBSD: patch-ab,v 1.6 2004/06/12 01:37:39 grant Exp $
|
|
|
|
--- audio.c.orig 2004-01-23 20:41:31.000000000 +1100
|
|
+++ audio.c
|
|
@@ -959,7 +959,7 @@ unsigned int audio_pcm_s32be(unsigned ch
|
|
}
|
|
}
|
|
|
|
-static
|
|
+static inline
|
|
unsigned char linear2mulaw(mad_fixed_t sample)
|
|
{
|
|
unsigned int sign, mulaw;
|
|
@@ -1000,7 +1000,7 @@ unsigned char linear2mulaw(mad_fixed_t s
|
|
return mulaw;
|
|
}
|
|
|
|
-static
|
|
+static inline
|
|
mad_fixed_t mulaw2linear(unsigned char mulaw)
|
|
{
|
|
int sign, segment, mantissa, value;
|