From e1a8ce1d5d19697269d4b87c945e886f55acd157 Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 31 Mar 2012 20:31:31 +0200 Subject: log2 compat fix in dumb lib --- plugins/dumb/dumb-kode54/src/it/itrender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/dumb') 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 -- cgit v1.2.3