Makefile: make it easy to suppress the "-D" flag to "install".
[wiggle/upstream.git] / config.h
blobecf34119d2e135fc12c2f30d003f547f1c4b27af
2 /* Includes and defines for ccan files */
4 #if !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 #ifdef LITTLE_ENDIAN
12 #define HAVE_LITTLE_ENDIAN 1
13 #define HAVE_BIG_ENDIAN 0
14 #elif defined(BIG_ENDIAN)
15 #define HAVE_LITTLE_ENDIAN 0
16 #define HAVE_BIG_ENDIAN 1
17 #else
18 #error Unknown endian
19 #endif