From 2c9c5c4297584fcdf2303235c1861d9363a8c9a5 Mon Sep 17 00:00:00 2001
From: PeiYong Zhang <peiyongz@apache.org>
Date: Thu, 19 Aug 2004 21:24:12 +0000
Subject: [PATCH] Jira[1255], patch from Neil Sharman

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175998 13f79535-47bb-0310-9956-ffa450edef68
---
 .../util/Platforms/Solaris/SolarisDefs.hpp    | 21 +++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/xercesc/util/Platforms/Solaris/SolarisDefs.hpp b/src/xercesc/util/Platforms/Solaris/SolarisDefs.hpp
index 9c3de4d20..525779de1 100644
--- a/src/xercesc/util/Platforms/Solaris/SolarisDefs.hpp
+++ b/src/xercesc/util/Platforms/Solaris/SolarisDefs.hpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.3  2004/08/19 21:24:12  peiyongz
+ * Jira[1255], patch from Neil Sharman
+ *
  * Revision 1.2  2003/11/17 16:18:01  peiyongz
  * Fix to  #4556
  *
@@ -81,13 +84,19 @@
  *
  */
 
+ // --------------------------------------------------------------------------- 
+ // Detect endian mode 
+ // --------------------------------------------------------------------------- 
+#include <sys/isa_defs.h> 
 
-// ---------------------------------------------------------------------------
-//  SPARC runs in big endian mode
-// ---------------------------------------------------------------------------
-#define ENDIANMODE_BIG
-typedef int FileHandle;
-
+#ifdef _LITTLE_ENDIAN 
+  #define ENDIANMODE_LITTLE 
+#elif defined(_BIG_ENDIAN) 
+  #define ENDIANMODE_BIG 
+#else 
+  #error : unknown byte order! 
+#endif 
+ 
 #ifndef SOLARIS
 #define SOLARIS
 #endif
-- 
GitLab