abs macro in Arduino.h collides with abs() function in cstdlib header
jorenheit opened this issue · 3 comments
jorenheit commented
I got compilation errors due to a macro (abs) defined in Arduino.h. Encapsulating the inline definition of the abs() function in the cstdlib header, in #ifndef ... #endif directives fixed this issue. I hope I didn't break anything else in the meantime...
webelcomau commented
similar problem, had to switch to explicit fabs(float) when using StandardCplusplus, abs() started giving 0.
Bravo555 commented
Same problem here.