aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-27 21:58:35 +0100
committerMax Kellermann <max@duempel.org>2013-01-27 21:58:35 +0100
commita65afa809062221b23796f8d3fcaa1d2ea2228f4 (patch)
treef9226f34c955918ea6f61c6d9c2a92e830ec966d
parent81557849909e4833a075f7be104031d751a31357 (diff)
downloadmpd-a65afa809062221b23796f8d3fcaa1d2ea2228f4.tar.gz
mpd-a65afa809062221b23796f8d3fcaa1d2ea2228f4.tar.xz
mpd-a65afa809062221b23796f8d3fcaa1d2ea2228f4.zip
PlayerControl: work around std::nanf() not being available on MacPorts
Diffstat (limited to '')
-rw-r--r--src/PlayerControl.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PlayerControl.cxx b/src/PlayerControl.cxx
index 01a9c7e81..d3e8c7d08 100644
--- a/src/PlayerControl.cxx
+++ b/src/PlayerControl.cxx
@@ -44,7 +44,13 @@ player_control::player_control(unsigned _buffer_chunks,
next_song(nullptr),
cross_fade_seconds(0),
mixramp_db(0),
+#if defined(__GLIBCXX__) && !defined(_GLIBCXX_USE_C99_MATH_TR1)
+ /* workaround: on MacPorts, this option is disabled on gcc47,
+ and therefore std::nanf() is not available */
+ mixramp_delay_seconds(nanf("")),
+#else
mixramp_delay_seconds(std::nanf("")),
+#endif
total_play_time(0),
border_pause(false)
{