Support for compiling against libc++

This commit is contained in:
Jack Andersen 2019-04-06 18:55:39 -10:00
parent e04603bb7d
commit aeaba9366d
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include "IBackendVoiceAllocator.hpp" #include "IBackendVoiceAllocator.hpp"
#include <mutex> #include <mutex>
#include <list> #include <list>
#include <unordered_map>
namespace amuse { namespace amuse {

View File

@ -1,5 +1,6 @@
#include "amuse/DSPCodec.hpp" #include "amuse/DSPCodec.hpp"
#include <algorithm> #include <algorithm>
#include <cmath>
#include <memory.h> #include <memory.h>
#if __SWITCH__ #if __SWITCH__
@ -185,7 +186,7 @@ static bool AnalyzeRanges(tvec mtx[3], int* vecIdxsOut) {
/* Get greatest distance from zero */ /* Get greatest distance from zero */
for (int x = 1; x <= 2; x++) { 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) if (val < DBL_EPSILON)
return true; return true;