Martin Guy wrote:
Can you suggest a way to automatically detect endianness on your box
so that we can make a patch that will also work everywhere else?
const unsigned int IS_LITTLE_ENDIAN_TEST_BIT = 1u;
// If left-most byte of 1 is non-zero, we're little endian
const bool IS_LITTLE_ENDIAN =
*reinterpret_cast<const unsigned char*>(&IS_LITTLE_ENDIAN_TEST_BIT) == 1;
j.mcgill
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev