remove boost pow stuff for uClibc-ng

It's available there.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-03-23 20:36:38 -07:00
parent e87454ae88
commit 9bad5ee3c5
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
3 changed files with 3 additions and 5 deletions

View File

@ -20,9 +20,9 @@
#include "ReplayGainGlobal.hxx" #include "ReplayGainGlobal.hxx"
#include "ReplayGainConfig.hxx" #include "ReplayGainConfig.hxx"
#include "config/Data.hxx" #include "config/Data.hxx"
#include "util/Math.hxx"
#include <cassert> #include <cassert>
#include <cmath>
#include <cstdlib> #include <cstdlib>
#include <stdexcept> #include <stdexcept>

View File

@ -19,7 +19,8 @@
#include "ReplayGainInfo.hxx" #include "ReplayGainInfo.hxx"
#include "ReplayGainConfig.hxx" #include "ReplayGainConfig.hxx"
#include "util/Math.hxx"
#include <cmath>
float float
ReplayGainTuple::CalculateScale(const ReplayGainConfig &config) const noexcept ReplayGainTuple::CalculateScale(const ReplayGainConfig &config) const noexcept

View File

@ -31,15 +31,12 @@
#define MATH_HXX #define MATH_HXX
#ifdef __UCLIBC__ #ifdef __UCLIBC__
#include <boost/math/special_functions/pow.hpp>
#include <boost/math/special_functions/round.hpp> #include <boost/math/special_functions/round.hpp>
using boost::math::iround; using boost::math::iround;
using boost::math::pow;
using boost::math::lround; using boost::math::lround;
#define lrint iround #define lrint iround
#else #else
#include <cmath> #include <cmath>
using std::pow;
using std::lrint; using std::lrint;
using std::lround; using std::lround;
#endif #endif