[patch] Find if we are big endian at compile time

Joerg Sonnenberger joerg at britannica.bec.de
Sun Apr 14 07:07:44 PDT 2013


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



More information about the llvm-commits mailing list