Get endianess right.
Why would an XML library need to know about endianess anyway ?? Prodded by, long time ago: ahze
This commit is contained in:
parent
194617769b
commit
8f30c4da04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168998
@ -1,7 +1,13 @@
|
|||||||
/* $FreeBSD$ */
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
|
#include <machine/endian.h>
|
||||||
|
|
||||||
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
|
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
|
||||||
|
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||||
#define BYTEORDER 1234
|
#define BYTEORDER 1234
|
||||||
|
#else
|
||||||
|
#define BYTEORDER 4321
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define to 1 if you have the `bcopy' function. */
|
/* Define to 1 if you have the `bcopy' function. */
|
||||||
#define HAVE_BCOPY 1
|
#define HAVE_BCOPY 1
|
||||||
@ -67,7 +73,11 @@
|
|||||||
#define STDC_HEADERS 1
|
#define STDC_HEADERS 1
|
||||||
|
|
||||||
/* whether byteorder is bigendian */
|
/* 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
|
/* Define to specify how much context to retain around the current parse
|
||||||
point. */
|
point. */
|
||||||
|
Loading…
Reference in New Issue
Block a user