Opened 10 years ago

Closed 10 years ago

#7528 closed Bugs (fixed)

Compilation failure on Android and Xbox 360

Reported by: Domagoj Šarić Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description (last modified by Domagoj Šarić)

boost/detail/endian.hpp fails to autodetect endianess for Android and Xbox so LITTLE_ENDIAN or BIG_ENDIAN (respectively) has to be manually defined before anything includes that header. Alternatively, a more elaborate approach can be used:

    #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 ) && !defined( __BIG_ENDIAN__ )
        #define __BIG_ENDIAN__
    #endif // platform

Change History (3)

comment:1 by Domagoj Šarić, 10 years ago

Description: modified (diff)

comment:2 by John Maddock, 10 years ago

(In [83004]) Apply patch for XBox and Android. Refs #7528.

comment:3 by John Maddock, 10 years ago

Resolution: fixed
Status: newclosed

(In [83139]) Merge changes from Trunk. Fixes #6013. Fixes #7151. Fixes #7359. Fixes #7389. Fixes #7452. Fixes #7528. Fixes #7703. Fixes #7841. Fixes #7898. Fixes #7938. Fixes #8048.

Note: See TracTickets for help on using tickets.