maniacbug/StandardCplusplus

abs macro in Arduino.h collides with abs() function in cstdlib header

jorenheit opened this issue · 3 comments

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