endian.h 619 B

123456789101112131415161718
  1. /* This file should define __BYTE_ORDER as appropriate for the machine
  2. in question. See string/endian.h for how to define it.
  3. If only the stub bits/endian.h applies to a particular configuration,
  4. bytesex.h is generated by running a program on the host machine.
  5. So if cross-compiling to a machine with a different byte order,
  6. the bits/endian.h file for that machine must exist. */
  7. #ifndef _ENDIAN_H
  8. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  9. #endif
  10. #error Machine byte order unknown.
  11. #if 0
  12. #define __BYTE_ORDER __BIG_ENDIAN
  13. #define __BYTE_ORDER __LITTLE_ENDIAN
  14. #endif