summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2016-06-02 21:52:44 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2016-06-02 21:52:44 +0200
commit5af546443fd7627c18db932ac1c0066937560429 (patch)
treed4eb45b27975acc38b54b057c4b17c308a7cb43d /src/util/math.h
parentd2c46f2f476e8ae21c881dc54d3d773dfa98cffa (diff)
Include both cmath and math.h to fix compiling on Mac OS
Diffstat (limited to 'src/util/math.h')
-rw-r--r--src/util/math.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/math.h b/src/util/math.h
index c0ec43b4a5..1e95cbe03d 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -11,7 +11,11 @@
#endif
#include <math.h>
-// Note: #include <cmath> does not work with GCC 6.1.1 because of our fpclassify hack
+#include <cmath>
+// Note: Because of our fpclassify hack, we actualy need to inlude both,
+// the c and the c++ version of the math header.
+// From GCC 6.1.1 math.h depends on cmath, which failes to compile if included
+// after our fpclassify hack
#include <algorithm>