Bug#34659: libc6-dev: bits/endian.h broken for PPC (wishful thinking re: gcc)
On Sat, 6 Feb 1999 19:35:05 -0500, email@example.com wrote:
>On PowerPC, bits/endian.h apparently expects gcc to magically set __BIG_ENDIAN
>or __LITTLE_ENDIAN, depending on which mode the processor is currently using.
>From the source:
>/* PowerPC can be little or big endian. Hopefully gcc will know... */
That file has been truncated. It's supposed to read something like
/* PowerPC can be little or big endian. Hopefully gcc will know... */
#define __BYTE_ORDER __BIG_ENDIAN
#elif defined __MIPSEL__
#define __BYTE_ORDER __LITTLE_ENDIAN
#error Unable to determine host byte order
-- and yes, gcc should be defining one of __MIPSEB__ or __MIPSEL__.