Changes between Initial Version and Version 1 of Ticket #7528
- Timestamp:
- Oct 18, 2012, 11:29:26 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7528 – Description
initial v1 1 1 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. 2 2 Alternatively, a more elaborate approach can be used: 3 #if defined( __ANDROID__ ) 4 // http://stackoverflow.com/questions/6212951/endianness-of-android-ndk 5 #include "machine/_types.h" 6 #ifdef __ARMEB__ 3 {{{ 4 #if defined( __ANDROID__ ) 5 // http://stackoverflow.com/questions/6212951/endianness-of-android-ndk 6 #include "machine/_types.h" 7 #ifdef __ARMEB__ 8 #define __BIG_ENDIAN__ 9 #else 10 #define __LITTLE_ENDIAN__ 11 #endif // __ARMEB__ 12 #elif defined( _XBOX ) && !defined( __BIG_ENDIAN__ ) 7 13 #define __BIG_ENDIAN__ 8 #else 9 #define __LITTLE_ENDIAN__ 10 #endif // __ARMEB__ 11 #elif defined( _XBOX ) && !defined( __BIG_ENDIAN__ ) 12 #define __BIG_ENDIAN__ 13 #endif // platform 14 #endif // platform 15 }}}