<div dir="ltr">ISTR years ago seeing some C magic, where in a compile time declaration, one packs bytes into a struct union with an integer, and then at runtime looks at the integer value to determine the endianess on the fly. Downside: it has to be tested at runtime, which means the compile time optimizer is less likely to remove the unused code paths.<div><br></div><div>Is it the case that the C standard or the POSIX standard do not define a standard #define that tells the current endianess? That seems like just the sort of thing that the standard should do...</div><div><br></div><div>..m </div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, May 23, 2017 at 11:59 AM Hal Murray <<a href="mailto:hmurray@megapathdsl.net">hmurray@megapathdsl.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you are keeping track...<br>
<br>
It builds and runs on a 32 bit PowerPC MAC-Mini, both Debian and FreeBSD.<br>
<br>
#define WORDS_BIGENDIAN 1<br>
<br>
There are problems with the firmware setting up the time keeping parameters<br>
incorrectly. I can patch it via Open Firmware, but haven't figured out how<br>
to make it stick over reboots.<br>
<br>
<br>
--<br>
These are my opinions. I hate spam.<br>
<br>
<br>
<br>
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr">Mark Atwood<br>
<a href="http://about.me/markatwood">http://about.me/markatwood</a><br>
+1-206-604-2198 SMS & Signal</p>
</div></div>