peiyongz 2004/08/19 14:24:12 Modified: c/src/xercesc/util/Platforms/Solaris SolarisDefs.hpp Log: Jira[1255], patch from Neil Sharman Revision Changes Path 1.3 +15 -6 xml-xerces/c/src/xercesc/util/Platforms/Solaris/SolarisDefs.hpp Index: SolarisDefs.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/Solaris/SolarisDefs.hpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- SolarisDefs.hpp 17 Nov 2003 16:18:01 -0000 1.2 +++ SolarisDefs.hpp 19 Aug 2004 21:24:12 -0000 1.3 @@ -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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]