merge: fix a problem with unmatchable hunks.
[wiggle/upstream.git] / config.h
blob79a64b5b65436fad1ce2dc8079dd18626671a206
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>
7 #else
8 #include <endian.h>
9 #endif
10 #endif
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
17 #else
18 #error Unknown endian
19 #endif