diff options
author | Max Kellermann <max@duempel.org> | 2013-01-07 08:53:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-07 10:19:02 +0100 |
commit | 333a08ebf9ceb86d5f9354f96321c4c0f704374e (patch) | |
tree | 2da12e51442fe0a912f5811c0ed21a59dbfa9967 /src/PlayerThread.cxx | |
parent | 989c9a7317354a538aef7c3ed35cf995a9afc6e1 (diff) | |
download | mpd-333a08ebf9ceb86d5f9354f96321c4c0f704374e.tar.gz mpd-333a08ebf9ceb86d5f9354f96321c4c0f704374e.tar.xz mpd-333a08ebf9ceb86d5f9354f96321c4c0f704374e.zip |
replay_gain_info, ...: use cmath instead of math.h in C++ mode
Fixes build problems with mingw32.
Diffstat (limited to '')
-rw-r--r-- | src/PlayerThread.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx index 6b05dd97c..44534a7d8 100644 --- a/src/PlayerThread.cxx +++ b/src/PlayerThread.cxx @@ -37,6 +37,8 @@ extern "C" { #include "idle.h" } +#include <cmath> + #include <glib.h> #undef G_LOG_DOMAIN @@ -759,7 +761,7 @@ play_next_chunk(struct player *player) other_chunk->tag); other_chunk->tag = NULL; - if (isnan(pc->mixramp_delay_seconds)) { + if (std::isnan(pc->mixramp_delay_seconds)) { chunk->mix_ratio = ((float)cross_fade_position) / player->cross_fade_chunks; } else { |