https://www.reddit.com/r/C_Programming/comments/xm8f8e/why_doesnt_c_have_a_standard_macro_to_determine/ Be aware that a few CPUs have dynamic endianness :(