<div dir="ltr">I wonder if the MIPS folks would prefer to use their predefined architecture macros. I wonder the same about the ARM folks.<div><br></div><div style>Either way, I would make the behavior that we test for evidence of a big endian system, and unless we find it, default to little endian. I think this will neatly avoid the need to special case MSVC. It also seems prudent given the last decade or so of hardware development. ;]</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 13, 2013 at 9:01 PM, Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Err, on essentially any modern system, I think you can use <endian.h> (see<br>
> the endian(3) man page) to get BYTE_ORDER to be defined.<br>
><br>
> I would suggest using the preprocessor pattern outlined at the bottom of<br>
> this page: <a href="http://sourceforge.net/p/predef/wiki/Endianness/" target="_blank">http://sourceforge.net/p/predef/wiki/Endianness/</a><br>
<br>
</div>Thanks for the tip. New versions of the patches are attached.<br>
<br>
Thanks,<br>
Rafael<br>
</blockquote></div><br></div>