Implemented endianness testing for Linux and Darwin operating systems.