2 /* Includes and defines for ccan files */
4 #if !defined(BYTE_ORDER) && !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
5 #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
6 #include <machine/endian.h>
11 #if BYTE_ORDER == LITTLE_ENDIAN
12 #define HAVE_LITTLE_ENDIAN 1
13 #define HAVE_BIG_ENDIAN 0
14 #elif BYTE_ORDER == BIG_ENDIAN
15 #define HAVE_LITTLE_ENDIAN 0
16 #define HAVE_BIG_ENDIAN 1