summaryrefslogtreecommitdiff
path: root/plugins/dumb
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-03-31 20:31:31 +0200
committerGravatar waker <wakeroid@gmail.com>2012-03-31 20:31:31 +0200
commite1a8ce1d5d19697269d4b87c945e886f55acd157 (patch)
tree8e1ba78abd7c5491291c9cc2a7539d0b672bf57a /plugins/dumb
parent312d3450bd8c07facf7723a630757e4e1cba7b5d (diff)
log2 compat fix in dumb lib
Diffstat (limited to 'plugins/dumb')
-rw-r--r--plugins/dumb/dumb-kode54/src/it/itrender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/dumb/dumb-kode54/src/it/itrender.c b/plugins/dumb/dumb-kode54/src/it/itrender.c
index a5986928..b69bb765 100644
--- a/plugins/dumb/dumb-kode54/src/it/itrender.c
+++ b/plugins/dumb/dumb-kode54/src/it/itrender.c
@@ -3558,7 +3558,7 @@ static void process_playing(DUMB_IT_SIGRENDERER *sigrenderer, IT_PLAYING *playin
playing->sample_vibrato_time += playing->sample->vibrato_speed;
}
-#ifndef __linux__
+#if !(_XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L)
static inline float log2(float x) {return (float)log(x)/(float)log(2.0f);}
#endif