2723c11bd9
are defined in terms of bswap32() and bswap16(). This makes the definition be in the same place for all systems regardless of creed^Wendianness.
9 lines
231 B
C
9 lines
231 B
C
/* $NetBSD: endian_machdep.h,v 1.8 2006/01/30 21:52:38 dsl Exp $ */
|
|
|
|
/* GCC predefines __ARMEB__ when building for big-endian ARM. */
|
|
#ifdef __ARMEB__
|
|
#define _BYTE_ORDER _BIG_ENDIAN
|
|
#else
|
|
#define _BYTE_ORDER _LITTLE_ENDIAN
|
|
#endif
|