]> git.neil.brown.name Git - wiggle.git/blob - config.h
Disable *all* backups when --no-backups used
[wiggle.git] / config.h
1
2 /* Includes and defines for ccan files */
3
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
20