From aeaba9366d43ac0285d370eec0f2d02e73a94a0e Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 6 Apr 2019 18:55:39 -1000 Subject: [PATCH] Support for compiling against libc++ --- include/amuse/BooBackend.hpp | 1 + lib/DSPCodec.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/amuse/BooBackend.hpp b/include/amuse/BooBackend.hpp index 5eac4e9..21ddddc 100644 --- a/include/amuse/BooBackend.hpp +++ b/include/amuse/BooBackend.hpp @@ -9,6 +9,7 @@ #include "IBackendVoiceAllocator.hpp" #include #include +#include namespace amuse { diff --git a/lib/DSPCodec.cpp b/lib/DSPCodec.cpp index 0277fa3..4060486 100644 --- a/lib/DSPCodec.cpp +++ b/lib/DSPCodec.cpp @@ -1,5 +1,6 @@ #include "amuse/DSPCodec.hpp" #include +#include #include #if __SWITCH__ @@ -185,7 +186,7 @@ static bool AnalyzeRanges(tvec mtx[3], int* vecIdxsOut) { /* Get greatest distance from zero */ for (int x = 1; x <= 2; x++) { - val = std::max(fabs(mtx[x][1]), fabs(mtx[x][2])); + val = std::max(std::fabs(mtx[x][1]), std::fabs(mtx[x][2])); if (val < DBL_EPSILON) return true;