Browse Source

Use cmath instead of math.h

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
abd194b959
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/math.hpp

+ 2
- 2
include/math.hpp View File

@@ -2,7 +2,7 @@

#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <cmath>


namespace rack {
@@ -204,7 +204,7 @@ struct Vec {
return x == 0.0 && y == 0.0;
}
bool isFinite() {
return isfinite(x) && isfinite(y);
return std::isfinite(x) && std::isfinite(y);
}
Vec clamp(Rect bound);
};


Loading…
Cancel
Save