Andrew Alm
2006-02-28 05:25:26 UTC
I was trying to get clanlib working on PPC with linux
and found out that USE_BIG_ENDIAN define doesn't seem
to work right. This patch makes endianess.cpp check
at run time for big or little endian the first time it
is called. I think its slightly better than using a
define because it will work across operating systems
better and the powerpc can change endianess (virtual
pc on the mac does this). I also fixed the 64 bit
check so it always tries the check first time you call
the function.
And so was the story of the cowboys and the endians.
~shadowarts
and found out that USE_BIG_ENDIAN define doesn't seem
to work right. This patch makes endianess.cpp check
at run time for big or little endian the first time it
is called. I think its slightly better than using a
define because it will work across operating systems
better and the powerpc can change endianess (virtual
pc on the mac does this). I also fixed the 64 bit
check so it always tries the check first time you call
the function.
And so was the story of the cowboys and the endians.
~shadowarts