From d23ed53f3ce25e3d14152d659a56665e375d68d9 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sun, 29 Aug 2021 14:27:29 +0200 Subject: [PATCH] Also fix min/max outside of AVR by using the standard std::min/max --- src/cmath.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmath.h b/src/cmath.h index 53e5d18..24692a9 100644 --- a/src/cmath.h +++ b/src/cmath.h @@ -3,7 +3,11 @@ #pragma once #ifndef __AVR__ -#include +#include // abs + +#include +using std::max; +using std::min; #else // AVR libc doesn't support cmath