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

This commit is contained in:
Max Kellermann 2020-04-14 13:12:42 +02:00
commit 8d2079482f

View File

@ -30,11 +30,16 @@
#ifndef MATH_HXX #ifndef MATH_HXX
#define 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) #if (defined(__GLIBCPP__) || defined(__GLIBCXX__)) && !defined(_GLIBCXX_USE_C99_MATH)
#include <boost/math/special_functions/round.hpp> #include <boost/math/special_functions/round.hpp>
using boost::math::lround; using boost::math::lround;
#else #else
#include <cmath>
using std::lround; using std::lround;
#endif #endif