simple config file option. Also, don't hard code the endian setting in a header file. Rely instead on the compiler defining __LITTLE_ENDIAN__ and DTRT as appropriate.