endian.h 327 B

1234567891011121314151617181920
  1. #ifndef __MACHINE_ENDIAN_H__
  2. #include <sys/config.h>
  3. #ifndef BIG_ENDIAN
  4. #define BIG_ENDIAN 4321
  5. #endif
  6. #ifndef LITTLE_ENDIAN
  7. #define LITTLE_ENDIAN 1234
  8. #endif
  9. #ifndef BYTE_ORDER
  10. #ifdef __IEEE_LITTLE_ENDIAN
  11. #define BYTE_ORDER LITTLE_ENDIAN
  12. #else
  13. #define BYTE_ORDER BIG_ENDIAN
  14. #endif
  15. #endif
  16. #endif /* __MACHINE_ENDIAN_H__ */