endian.h 485 B

1234567891011121314151617181920
  1. /*
  2. * libc/sysdeps/linux/sh64/bits/endian.h
  3. *
  4. * Copyright (C) 2003 Paul Mundt
  5. *
  6. * This file is subject to the terms and conditions of the GNU Lesser
  7. * General Public License. See the file COPYING.LIB in the main
  8. * directory of this archive for more details.
  9. */
  10. #ifndef _ENDIAN_H
  11. # error "Never use <bits/endian.h> directly; include <endian.h> instead."
  12. #endif
  13. #ifdef __LITTLE_ENDIAN__
  14. # define __BYTE_ORDER __LITTLE_ENDIAN
  15. #else
  16. # define __BYTE_ORDER __BIG_ENDIAN
  17. #endif