diff --git a/src/util/Math.hxx b/src/util/Math.hxx index 9784c0b64877b2781b0c095abe081a6a0b4379b0..ad5cffd82213856aaece1a65973a1ca1f094ba80 100644 --- a/src/util/Math.hxx +++ b/src/util/Math.hxx @@ -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