mirror of https://github.com/AxioDL/amuse.git
Support for compiling against libc++
This commit is contained in:
parent
e04603bb7d
commit
aeaba9366d
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue