Merge "fix missing __BIG_ENDIAN__ definition on some platform"

This commit is contained in:
skal 2014-02-11 14:51:11 -08:00 committed by Gerrit Code Review
commit 6c32744214

View File

@ -86,6 +86,12 @@ extern "C" {
#endif #endif
// some endian fix (e.g.: mips-gcc doesn't define __BIG_ENDIAN__)
#if !defined(__BIG_ENDIAN__) && defined(__BYTE_ORDER__) && \
(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#define __BIG_ENDIAN__
#endif
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// Derived types and constants // Derived types and constants