Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-05-21 11:39:41


Author: johnmaddock
Date: 2008-05-21 11:39:41 EDT (Wed, 21 May 2008)
New Revision: 45608
URL: http://svn.boost.org/trac/boost/changeset/45608

Log:
Apply NetBSD fix from issue #1922.
Text files modified:
   trunk/boost/detail/endian.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/detail/endian.hpp
==============================================================================
--- trunk/boost/detail/endian.hpp (original)
+++ trunk/boost/detail/endian.hpp 2008-05-21 11:39:41 EDT (Wed, 21 May 2008)
@@ -42,10 +42,10 @@
 # error Unknown machine endianness detected.
 # endif
 # define BOOST_BYTE_ORDER __BYTE_ORDER
-#elif defined(_BIG_ENDIAN)
+#elif defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN)
 # define BOOST_BIG_ENDIAN
 # define BOOST_BYTE_ORDER 4321
-#elif defined(_LITTLE_ENDIAN)
+#elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
 # define BOOST_LITTLE_ENDIAN
 # define BOOST_BYTE_ORDER 1234
 #elif defined(__sparc) || defined(__sparc__) \


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk