ENDIAN_LE32()

uint32_t ENDIAN_LE32 (uint32_t var )

If the host is little-endian, this macro does nothing (expands simply to var); else, it performs a quadruple byte swap.