diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2007-04-24 06:29:27 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2007-04-24 06:29:27 +0000 |
| commit | 8f30c4da0445eff52fb863eb9234234fa0ee55f4 (patch) | |
| tree | 19339a56858bd0cc5f5e6c1995617ecd51f1fcfe /lib | |
| parent | 194617769b1cd61d7ba840eeb1ca43717f696792 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libexpat/expat_config.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libexpat/expat_config.h b/lib/libexpat/expat_config.h index 036c4d3a5cd53..980812954a827 100644 --- a/lib/libexpat/expat_config.h +++ b/lib/libexpat/expat_config.h @@ -1,7 +1,13 @@ /* $FreeBSD$ */ +#include <machine/endian.h> + /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ +#if BYTE_ORDER == LITTLE_ENDIAN #define BYTEORDER 1234 +#else +#define BYTEORDER 4321 +#endif /* Define to 1 if you have the `bcopy' function. */ #define HAVE_BCOPY 1 @@ -67,7 +73,11 @@ #define STDC_HEADERS 1 /* whether byteorder is bigendian */ -/* #undef WORDS_BIGENDIAN */ +#if BYTE_ORDER == BIG_ENDIAN +#define WORDS_BIGENDIAN +#else +#undef WORDS_BIGENDIAN +#endif /* Define to specify how much context to retain around the current parse point. */ |
