replay_gain_info, ...: use cmath instead of math.h in C++ mode

Fixes build problems with mingw32.
This commit is contained in:
Max Kellermann
2013-01-07 08:53:08 +01:00
parent 989c9a7317
commit 333a08ebf9
5 changed files with 20 additions and 8 deletions

View File

@@ -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)
{
}