From: Greg Stein Date: Sat, 1 Jul 2000 13:56:00 +0000 (+0000) Subject: autoconf gives us WORDS_BIGENDIAN. a bit more of our magic for whether we X-Git-Tag: APACHE_2_0_ALPHA_5~202 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db32e1ab4e4262d3215fd5a3b19a3f4493d28d4e;p=thirdparty%2Fapache%2Fhttpd.git autoconf gives us WORDS_BIGENDIAN. a bit more of our magic for whether we even know the byte order one way or another. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85740 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/srclib/expat-lite/xmldef.h b/srclib/expat-lite/xmldef.h index 20c31844d8b..4f403cb0e43 100644 --- a/srclib/expat-lite/xmldef.h +++ b/srclib/expat-lite/xmldef.h @@ -65,6 +65,13 @@ particular environments. */ #ifdef APACHE #include "ap_config.h" -#define XML_BYTE_ORDER AP_BYTE_ORDER + +#ifndef AP_UNKNOWN_BYTE_ORDER +#ifdef WORDS_BIDENDIAN +#define XML_BYTE_ORDER 21 /* big-endian */ +#else +#define XML_BYTE_ORDER 12 /* little-endian */ +#endif +#endif #endif /* APACHE */