ENDIAN_BE64()

uint64_t ENDIAN_BE64 (uint64_t var )

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