ArduinoCore-API
ArduinoCore-API copied to clipboard
Why not using abs() from stdlib?
Why does Arduino.h use its own abs() if stdlib has this already builtin. This causes me problems in build environments. I dont see any reason why one would prefer an Arduino definition. Can we get rid of it?
#define abs(x) ((x)>0?(x):-(x))
To be considered for merge alongside https://github.com/arduino/Arduino/issues/6098 (I'm :+1: for both)