endian.h 337 B

123456789101112
  1. /* Sparc is big-endian, but v9 supports endian conversion on loads/stores
  2. and GCC supports such a mode. Be prepared. */
  3. #ifndef _ENDIAN_H
  4. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  5. #endif
  6. #ifdef __LITTLE_ENDIAN__
  7. # define __BYTE_ORDER __LITTLE_ENDIAN
  8. #else
  9. # define __BYTE_ORDER __BIG_ENDIAN
  10. #endif