summaryrefslogtreecommitdiff
path: root/dumb
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-23 03:00:04 +0700
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-22 21:34:54 +0100
commit706a6f88f46a203adfeada1f3d98262d7cc47e47 (patch)
tree3b42d47a03cedc795a64e5fa02ada74f74de5049 /dumb
parent11fa9174dad72268c5468765ecc81112b1ca95d3 (diff)
bsd compile fixes
Diffstat (limited to 'dumb')
-rw-r--r--dumb/dumb-kode54/src/it/itrender.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dumb/dumb-kode54/src/it/itrender.c b/dumb/dumb-kode54/src/it/itrender.c
index 2b7d29fc..5dd8e4ef 100644
--- a/dumb/dumb-kode54/src/it/itrender.c
+++ b/dumb/dumb-kode54/src/it/itrender.c
@@ -3537,6 +3537,9 @@ static void process_playing(DUMB_IT_SIGRENDERER *sigrenderer, IT_PLAYING *playin
}
//static float log2(float x) {return (float)log(x)/(float)log(2.0f);}
+#ifndef __linux__
+static inline float log2(float x) {return (float)log(x)/(float)log(2.0f);}
+#endif
static int delta_to_note(float delta, int base)
{