Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys/libc/endian.h: fix compilation with older newlib
Older versions of newlib already provide the magic endian numbers via `machine/endian.h`, which may be indirectly included. This changes the header to only provide the macros if the are not provided otherwise. For sanity, it checks if the values are indeed the expected magic numbers, even if provided from other sources.
- Loading branch information