The following: #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ are apparently semi-standard nowadays.
Simple rule: include files should never include include files. "Notes on Programming in C", Rob Pike, February 21, 1989 <https://www.lysator.liu.se/c/pikestyle.html>