diff --git a/src/util/Math.hxx b/src/util/Math.hxx index 9784c0b64..ad5cffd82 100644 --- a/src/util/Math.hxx +++ b/src/util/Math.hxx @@ -30,11 +30,16 @@ #ifndef MATH_HXX #define MATH_HXX +#include + +/* + * 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 using boost::math::lround; #else -#include using std::lround; #endif