You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
326 B

#if defined(HAVE_ENDIAN_H) && HAVE_ENDIAN_H
#include_next <endian.h>
#else
/* minimal version defining only the macros we need in our codebase */
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
#ifdef __ARMEB__
#define __BYTE_ORDER __BIG_ENDIAN
#else
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif
#endif