<div dir="ltr">Hi there,<div><br></div><div>While porting compiler-rt to a different platform, I noticed that int_endianness.h attempts to determine the endianness of the target platform by operating system. As far as I know, this is not needed in the general case, as both GCC and Clang provide the same built-in endianness macros. These macros are already used for Linux.</div><div><br></div><div>Attached is a patch that changes int_endianness.h to move the construct used for Linux to the top and prefer them over any OS-dependent construct. In theory we could now remove some of the OS-dependent checks below, but let's leave them as is for now.<br clear="all"><div><br></div><div>Thanks,</div>-- <br><div class="gmail_signature">Ed Schouten <<a href="mailto:ed@80386.nl" target="_blank">ed@80386.nl</a>></div>
</div></div>