Boost C++ Libraries: Ticket #7528: Compilation failure on Android and Xbox 360 https://svn.boost.org/trac10/ticket/7528 <p> boost/detail/endian.hpp fails to autodetect endianess for Android and Xbox so <span class="underline">LITTLE_ENDIAN</span> or <span class="underline">BIG_ENDIAN</span> (respectively) has to be manually defined before anything includes that header. Alternatively, a more elaborate approach can be used: </p> <pre class="wiki"> #if defined( __ANDROID__ ) // http://stackoverflow.com/questions/6212951/endianness-of-android-ndk #include "machine/_types.h" #ifdef __ARMEB__ #define __BIG_ENDIAN__ #else #define __LITTLE_ENDIAN__ #endif // __ARMEB__ #elif defined( _XBOX ) &amp;&amp; !defined( __BIG_ENDIAN__ ) #define __BIG_ENDIAN__ #endif // platform </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7528 Trac 1.4.3 Domagoj Šarić Thu, 18 Oct 2012 11:29:26 GMT description changed https://svn.boost.org/trac10/ticket/7528#comment:1 https://svn.boost.org/trac10/ticket/7528#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/7528?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket John Maddock Tue, 19 Feb 2013 16:06:58 GMT <link>https://svn.boost.org/trac10/ticket/7528#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7528#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83004" title="Apply patch for XBox and Android. Refs #7528.">[83004]</a>) Apply patch for XBox and Android. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7528" title="#7528: Bugs: Compilation failure on Android and Xbox 360 (closed: fixed)">#7528</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 24 Feb 2013 19:08:04 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7528#comment:3 https://svn.boost.org/trac10/ticket/7528#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/83139" title="Merge changes from Trunk. Fixes #6013. Fixes #7151. Fixes #7359. Fixes ...">[83139]</a>) Merge changes from Trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6013" title="#6013: Patches: endian.hpp header patch to utilize OpenBSD's endian header (closed: fixed)">#6013</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7151" title="#7151: Bugs: config.hpp does not define BOOST_HAS_TR1_TUPLE (closed: fixed)">#7151</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7359" title="#7359: Bugs: Compatibility with Intel icpc 13.0 when using -use-clang-env option on ... (closed: fixed)">#7359</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7389" title="#7389: Bugs: __STDC_LIMIT_MACROS can be redefined by boost when using mingw32 (closed: fixed)">#7389</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7452" title="#7452: Patches: Compiling Boost.Asio Example Error [with Clang compiled by MinGW gcc] (closed: fixed)">#7452</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7528" title="#7528: Bugs: Compilation failure on Android and Xbox 360 (closed: fixed)">#7528</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7703" title="#7703: Bugs: endian.hpp for QNX / BlackBerry10 (closed: fixed)">#7703</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7841" title="#7841: Feature Requests: A macro to detect real GCC (closed: fixed)">#7841</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7898" title="#7898: Bugs: TI compiller: wrong decision about type_info presence in boost/config (closed: fixed)">#7898</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7938" title="#7938: Patches: Support vxWorks (closed: fixed)">#7938</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8048" title="#8048: Bugs: Boost 1.53 + GCC 4.6.3 __int128 undefined. (closed: fixed)">#8048</a>. </p> Ticket