[patch] Find if we are big endian at compile time
Rafael EspĂndola
rafael.espindola at gmail.com
Sat Apr 13 21:01:13 PDT 2013
> 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.
>
> I would suggest using the preprocessor pattern outlined at the bottom of
> this page: http://sourceforge.net/p/predef/wiki/Endianness/
Thanks for the tip. New versions of the patches are attached.
Thanks,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: application/octet-stream
Size: 7223 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130414/90abeaf7/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang.patch
Type: application/octet-stream
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130414/90abeaf7/attachment-0001.obj>
More information about the llvm-commits
mailing list