Commit 8d207948 authored by Max Kellermann's avatar Max Kellermann

Merge branch 'lkj' of git://github.com/neheb/MPD into v0.21.x

parents c331c75f 6080c3b4
......@@ -30,11 +30,16 @@
#ifndef MATH_HXX
#define MATH_HXX
#include <cmath>
/*
* C99 math can be optionally omitted with gcc's libstdc++.
* Use boost if unavailable.
*/
#if (defined(__GLIBCPP__) || defined(__GLIBCXX__)) && !defined(_GLIBCXX_USE_C99_MATH)
#include <boost/math/special_functions/round.hpp>
using boost::math::lround;
#else
#include <cmath>
using std::lround;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment