From 32c5a149a589deb9f485168f80ec22aa71fc5306 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 8 Sep 2017 23:00:09 +0200 Subject: [PATCH] Use cmath and std functions, instead of math.h --- include/math.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/math.hpp b/include/math.hpp index ca83a664..bdeb7990 100644 --- a/include/math.hpp +++ b/include/math.hpp @@ -1,6 +1,6 @@ #pragma once -#include +#include namespace rack { @@ -180,7 +180,7 @@ struct Vec { return Vec(roundf(x), roundf(y)); } bool isFinite() { - return isfinite(x) && isfinite(y); + return std::isfinite(x) && std::isfinite(y); } bool isZero() { return x == 0.0 && y == 0.0;