Emuman, are you a KDE dev? THanks for the link to the upstream bug report.
This page suggests apparently more robust methods for checking endianness at runtime: http://unixpapa.com/incnote/byteorder.html
Something like a runtime check: int am_big_endian() { long one= 1; return !(*((char *)(&one))); }
It seems like __BYTE_ORDER is not always properly defined. Oh well, hope this helps!
Emuman, are you a KDE dev? THanks for the link to the upstream bug report.
This page suggests apparently more robust methods for checking endianness at runtime: unixpapa. com/incnote/ byteorder. html
http://
Something like a runtime check:
int am_big_endian()
{
long one= 1;
return !(*((char *)(&one)));
}
It seems like __BYTE_ORDER is not always properly defined. Oh well, hope this helps!