StandardCplusplus
StandardCplusplus copied to clipboard
abs macro in Arduino.h collides with abs() function in cstdlib header
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...
similar problem, had to switch to explicit fabs(float) when using StandardCplusplus, abs() started giving 0.
Same problem here.
Fixed in #34