BMI160_SensorAPI icon indicating copy to clipboard operation
BMI160_SensorAPI copied to clipboard

Rename LITTLE_ENDIAN and BIG_ENDIAN defines

Open Thannoy opened this issue 7 years ago • 0 comments

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

Thannoy avatar Apr 18 '18 21:04 Thannoy