diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2010-10-13 16:14:35 +0200 |
---|---|---|
committer | Thomas Klausner <wiz@NetBSD.org> | 2010-10-13 16:14:35 +0200 |
commit | fc8e4c1da0740908681caaa84a865e1d294643fd (patch) | |
tree | 7f2edeaeb3465bd15b6c2dd2f9c997956a676e96 | |
parent | 8924aa48824888581f03ec5893366630a61ce326 (diff) |
On NetBSD, sys/endian.h defines _BIG_ENDIAN etc; undefine the unwanted ones.
-rw-r--r-- | sal/inc/osl/endian.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sal/inc/osl/endian.h b/sal/inc/osl/endian.h index e8701bdc768a..b79c1f6456ac 100644 --- a/sal/inc/osl/endian.h +++ b/sal/inc/osl/endian.h @@ -66,11 +66,14 @@ extern "C" { #ifdef NETBSD # include <machine/endian.h> # if BYTE_ORDER == LITTLE_ENDIAN -# define _LITTLE_ENDIAN +# undef _BIG_ENDIAN +# undef _PDP_ENDIAN # elif BYTE_ORDER == BIG_ENDIAN -# define _BIG_ENDIAN +# undef _LITTLE_ENDIAN +# undef _PDP_ENDIAN # elif BYTE_ORDER == PDP_ENDIAN -# define _PDP_ENDIAN +# undef _LITTLE_ENDIAN +# undef _BIG_ENDIAN # endif #endif |