Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65089 - trunk/boost/detail
From: john_at_[hidden]
Date: 2010-08-28 13:34:15


Author: johnmaddock
Date: 2010-08-28 13:34:12 EDT (Sat, 28 Aug 2010)
New Revision: 65089
URL: http://svn.boost.org/trac/boost/changeset/65089

Log:
Pick STLPort endian options when available.
This should be a fix for embedded Visual C++ used with STLPort.
Text files modified:
   trunk/boost/detail/endian.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/detail/endian.hpp
==============================================================================
--- trunk/boost/detail/endian.hpp (original)
+++ trunk/boost/detail/endian.hpp 2010-08-28 13:34:12 EDT (Sat, 28 Aug 2010)
@@ -44,11 +44,13 @@
 # endif
 # define BOOST_BYTE_ORDER __BYTE_ORDER
 #elif defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) || \
- defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
+ defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__) || \
+ defined(_STLP_BIG_ENDIAN) && !defined(_STLP_LITTLE_ENDIAN)
 # define BOOST_BIG_ENDIAN
 # define BOOST_BYTE_ORDER 4321
 #elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN) || \
- defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
+ defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__) || \
+ defined(_STLP_LITTLE_ENDIAN) && !defined(_STLP_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