diff options
author | waker <wakeroid@gmail.com> | 2012-03-31 20:31:31 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-03-31 20:31:31 +0200 |
commit | e1a8ce1d5d19697269d4b87c945e886f55acd157 (patch) | |
tree | 8e1ba78abd7c5491291c9cc2a7539d0b672bf57a | |
parent | 312d3450bd8c07facf7723a630757e4e1cba7b5d (diff) |
log2 compat fix in dumb lib
-rw-r--r-- | plugins/dumb/dumb-kode54/src/it/itrender.c | 2 |
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
|