From 79e9aff3382d8b7521318c44835a6dd6b284e2c1 Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Tue, 7 Apr 2020 20:14:00 -0700
Subject: [PATCH] Math.hxx: move cmath include out of define

The _GLIBCXX_USE_C99_MATH macro is defined in glibcxx by c++config.h, which
gets included by every header. Which means a header needs to be present.
---
 src/util/Math.hxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/util/Math.hxx b/src/util/Math.hxx
index 308fcbe33..ad5cffd82 100644
--- a/src/util/Math.hxx
+++ b/src/util/Math.hxx
@@ -30,6 +30,8 @@
 #ifndef MATH_HXX
 #define MATH_HXX
 
+#include <cmath>
+
 /*
  * C99 math can be optionally omitted with gcc's libstdc++.
  * Use boost if unavailable.
@@ -38,7 +40,6 @@
 #include <boost/math/special_functions/round.hpp>
 using boost::math::lround;
 #else
-#include <cmath>
 using std::lround;
 #endif