From db32e1ab4e4262d3215fd5a3b19a3f4493d28d4e Mon Sep 17 00:00:00 2001 From: Greg Stein Date: Sat, 1 Jul 2000 13:56:00 +0000 Subject: [PATCH] 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 --- srclib/expat-lite/xmldef.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srclib/expat-lite/xmldef.h b/srclib/expat-lite/xmldef.h index 20c31844d8..4f403cb0e4 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 */ -- 2.50.1