use the BYTEORDER constant that ac_c_bigendian_cross.m4 generates.
* accconfig.h: removed; obsolete.
* lib/winconfig.h:
- set the BYTEORDER constant, rather than XML_BYTE_ORDER, and leave
a note about what we're assuming.
* lib/xmltok.c, lib/xmltok_ns.c:
- change all XML_BYTE_ORDER references to BYTEORDER, and
update the constants from 12, 21 to 1234, 4321 respectively.
+++ /dev/null
-/* This file is used by autoheader to add items to expat_config.h.in */
-
-#ifdef WORDS_BIGENDIAN
-#define XML_BYTE_ORDER 21
-#else
-#define XML_BYTE_ORDER 12
-#endif
** This is free software. You are permitted to copy, distribute, or modify\r
** it under the terms of the MIT/X license (contained in the COPYING file\r
** with this distribution.)\r
-**\r
-**\r
*/\r
\r
#ifndef WINCONFIG_H\r
\r
#define XML_NS 1\r
#define XML_DTD 1\r
-#define XML_BYTE_ORDER 12\r
#define XML_CONTEXT_BYTES 1024\r
\r
+/* we will assume all Windows platforms are little endian */\r
+#define BYTEORDER 1234\r
+\r
#endif /* ndef WINCONFIG_H */\r
static const struct normal_encoding little2_encoding_ns = {
{ VTABLE, 2, 0,
-#if XML_BYTE_ORDER == 12
+#if BYTEORDER == 1234
1
#else
0
static const struct normal_encoding little2_encoding = {
{ VTABLE, 2, 0,
-#if XML_BYTE_ORDER == 12
+#if BYTEORDER == 1234
1
#else
0
STANDARD_VTABLE(little2_)
};
-#if XML_BYTE_ORDER != 21
+#if BYTEORDER != 4321
#ifdef XML_NS
static const struct normal_encoding big2_encoding_ns = {
{ VTABLE, 2, 0,
-#if XML_BYTE_ORDER == 21
+#if BYTEORDER == 4321
1
#else
0
static const struct normal_encoding big2_encoding = {
{ VTABLE, 2, 0,
-#if XML_BYTE_ORDER == 21
+#if BYTEORDER == 4321
1
#else
0
STANDARD_VTABLE(big2_)
};
-#if XML_BYTE_ORDER != 12
+#if BYTEORDER != 1234
#ifdef XML_NS
const ENCODING *NS(XmlGetUtf16InternalEncoding)(void)
{
-#if XML_BYTE_ORDER == 12
+#if BYTEORDER == 1234
return &ns(internal_little2_encoding).enc;
-#elif XML_BYTE_ORDER == 21
+#elif BYTEORDER == 4321
return &ns(internal_big2_encoding).enc;
#else
const short n = 1;