endian.h 326 B

12345678910111213141516
  1. #if defined(HAVE_ENDIAN_H) && HAVE_ENDIAN_H
  2. #include_next <endian.h>
  3. #else
  4. /* minimal version defining only the macros we need in our codebase */
  5. #define __LITTLE_ENDIAN 1234
  6. #define __BIG_ENDIAN 4321
  7. #ifdef __ARMEB__
  8. #define __BYTE_ORDER __BIG_ENDIAN
  9. #else
  10. #define __BYTE_ORDER __LITTLE_ENDIAN
  11. #endif
  12. #endif