Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jorenheit opened this issue Dec 13, 2014 · 3 comments
Closed

Comments

@jorenheit
Copy link

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
Copy link

similar problem, had to switch to explicit fabs(float) when using StandardCplusplus, abs() started giving 0.

@Bravo555
Copy link

Same problem here.

@maniacbug
Copy link
Owner

Fixed in #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants