On Thu, Apr 11, 2013 at 05:35:57PM -0700, Chandler Carruth wrote: > Err, on essentially any modern system, I think you can use <endian.h> (see > the endian(3) man page) to get BYTE_ORDER to be defined. Only for Linux. For the BSDs it is either machine/endian.h or sys/endian.h. Joerg