Also fix min/max outside of AVR by using the standard std::min/max
parent
b55c13dec2
commit
d23ed53f3c
|
|
@ -3,7 +3,11 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef __AVR__
|
#ifndef __AVR__
|
||||||
#include <cmath>
|
#include <cmath> // abs
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
using std::max;
|
||||||
|
using std::min;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// AVR libc doesn't support cmath
|
// AVR libc doesn't support cmath
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue