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

Rename LITTLE_ENDIAN and BIG_ENDIAN defines #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Thannoy
Copy link

@Thannoy Thannoy commented Apr 18, 2018

System-wide endian.h already defines both LITTLE_ENDIAN and BIG_ENDIAN as part of BSD compatibility.

Before this fix, since little endianess is always tested first, it is likely to be always selected even on big endian machines.

This commit adds "BMI160_" prefix to them in order to fix this name collision.

At least link below speak about this issue:
https://bugs.launchpad.net/gcc-arm-embedded/+bug/1609078

System-wide endian.h already defines both LITTLE_ENDIAN and BIG_ENDIAN
as part of BSD compatibility.

This commit adds BMI160_ prefix to them in order to fix this name collision.

At least link below speak about this issue:
https://bugs.launchpad.net/gcc-arm-embedded/+bug/1609078
@Thannoy Thannoy changed the title Rename LITTLE_ENDIAN BIG_ENDIAN defines Rename LITTLE_ENDIAN and BIG_ENDIAN defines Apr 18, 2018
Rebase endianess macro renaming to current master
on which ELD changed.
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

Successfully merging this pull request may close these issues.

1 participant