Opened 10 years ago
Last modified 10 years ago
#7528 closed Bugs
Compilation failure on Android and Xbox 360 — at Initial Version
Reported by: | Domagoj Šarić | Owned by: | John Maddock |
---|---|---|---|
Milestone: | To Be Determined | Component: | config |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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
Note:
See TracTickets
for help on using tickets.