ENDIAN_LE64()

uint64_t ENDIAN_LE64 (uint64_t var )

If the host is little-endian, this macro does nothing (expands simply to var); else, it swaps octets of bytes.