]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[libc] Allow for externally-defined LITTLE_ENDIAN and BIG_ENDIAN constants
authorMichael Brown <mcb30@ipxe.org>
Thu, 15 Jul 2021 12:46:34 +0000 (13:46 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 15 Jul 2021 13:16:17 +0000 (14:16 +0100)
commit8d08300ad945988e0ce2fc24a34c19613154bae5
treea22a67f4708889adc21d31eaa9d881438057fd2a
parent2690f730961e335875cac5fd9cf870a94eaef11a
[libc] Allow for externally-defined LITTLE_ENDIAN and BIG_ENDIAN constants

When building the Linux userspace binaries, the external system
headers may have already defined values for the __LITTLE_ENDIAN and
__BIG_ENDIAN constants.

Fix by retaining the existing values if already defined, since the
actual values of these constants do not matter.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/endian.h