endian.h 679 B

123456789101112131415161718
  1. /*
  2. * Copyright (C) 2026 Waldemar Brodkorb <wbx@uclibc-ng.org>
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. /* This file should define __BYTE_ORDER as appropriate for the machine
  6. in question. See string/endian.h for how to define it.
  7. If only the stub bits/endian.h applies to a particular configuration,
  8. bytesex.h is generated by running a program on the host machine.
  9. So if cross-compiling to a machine with a different byte order,
  10. the bits/endian.h file for that machine must exist. */
  11. #ifndef _ENDIAN_H
  12. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  13. #endif
  14. #define __BYTE_ORDER __LITTLE_ENDIAN