<div dir="ltr">On Thu, Apr 11, 2013 at 4:53 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank" class="cremed">rafael.espindola@gmail.com</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 11 April 2013 19:45, Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com" class="cremed">rafael.espindola@gmail.com</a>> wrote:<br>

>> It's worth noting that __BYTE_ORDER__ and friends are only available<br>
>> starting with GCC 4.6.<br>
><br>
> gah, that kill the patch :-(<br>
><br>
> On OS X gcc defines __LITTLE_ENDIAN__. Do you know if that is also<br>
> true of other platforms?<br>
<br>
</div>I just checked on linux and it doesn't :-(<br>
<br>
We could ifdef on the processor defines, but that would probably get<br>
nasty. I will see what I can do without the ICE.<br></blockquote><div><br></div><div style>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.</div>
<div style><br></div><div style>I would suggest using the preprocessor pattern outlined at the bottom of this page: <a href="http://sourceforge.net/p/predef/wiki/Endianness/">http://sourceforge.net/p/predef/wiki/Endianness/</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Thanks,<br>
<div class=""><div class="h5">Rafael<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" class="cremed">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank" class="cremed">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>