aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerControl.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-07 08:53:08 +0100
committerMax Kellermann <max@duempel.org>2013-01-07 10:19:02 +0100
commit333a08ebf9ceb86d5f9354f96321c4c0f704374e (patch)
tree2da12e51442fe0a912f5811c0ed21a59dbfa9967 /src/PlayerControl.cxx
parent989c9a7317354a538aef7c3ed35cf995a9afc6e1 (diff)
downloadmpd-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/PlayerControl.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PlayerControl.cxx b/src/PlayerControl.cxx
index 275556fe8..4fa9f75b2 100644
--- a/src/PlayerControl.cxx
+++ b/src/PlayerControl.cxx
@@ -28,9 +28,10 @@ extern "C" {
#include "DecoderControl.hxx"
#include "Main.hxx"
+#include <cmath>
+
#include <assert.h>
#include <stdio.h>
-#include <math.h>
static void
pc_enqueue_song_locked(struct player_control *pc, struct song *song);
@@ -49,7 +50,7 @@ player_control::player_control(unsigned _buffer_chunks,
next_song(nullptr),
cross_fade_seconds(0),
mixramp_db(0),
- mixramp_delay_seconds(nanf("")),
+ mixramp_delay_seconds(std::nanf("")),
total_play_time(0)
{
}