So today I learned something

If neither BIG_ENDIAN, LITTLE_ENDIAN or BYTE_SWAP are defined, and you do:

BYTE_ORDER == LITTLE_ENDIAN
// code goes here

BYTE_ORDER == BIG_ENDIAN
// code goes here

The if states both evaluate to if 0 == 0, and thus becomes 1 and both lines get included. This just bit my Linux kernel build on XP ...

0

If you have a fediverse account, you can quote this note from your own instance. Search https://social.restless.systems/users/ncommander/statuses/114442336034807207 on your instance and quote it. (Note that quoting is not supported in Mastodon.)