summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/csky/bits/endian.h
blob: 09af89cd74a682c52d61aad203efcc1fb5e6aafd (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef _ENDIAN_H
# error "Never use <bits/endian.h> directly; include <endian.h> instead."
#endif

/* CSKY CPU can be either big or little endian.  */
#ifdef __cskyBE__
# define __BYTE_ORDER __BIG_ENDIAN
#else
# define __BYTE_ORDER __LITTLE_ENDIAN
#endif