> It's worth noting that __BYTE_ORDER__ and friends are only available > starting with GCC 4.6. gah, that kill the patch :-( On OS X gcc defines __LITTLE_ENDIAN__. Do you know if that is also true of other platforms? > -Nathan Cheers, Rafael