Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant