Want to see something cursed?
It's the Linux kernel 4.19 building *natively* under Windows XP under Services for UNIX. The amount of effort to get this far was immense ...
Want to see something cursed?
It's the Linux kernel 4.19 building *natively* under Windows XP under Services for UNIX. The amount of effort to get this far was immense ...
So today I learned something
If neither BIG_ENDIAN, LITTLE_ENDIAN or BYTE_SWAP are defined, and you do:
#if BYTE_ORDER == LITTLE_ENDIAN
// code goes here
#endif
#if BYTE_ORDER == BIG_ENDIAN
// code goes here
#endif
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 ...
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.)