blob: 0109c4ae75d69b5e3b6692ff8a7fe78ed84a0cfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* Includes and defines for ccan files */
#if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
#include <endian.h>
#endif
#ifdef LITTLE_ENDIAN
#define HAVE_LITTLE_ENDIAN 1
#define HAVE_BIG_ENDIAN 0
#elif defined(BIG_ENDIAN)
#define HAVE_LITTLE_ENDIAN 0
#define HAVE_BIG_ENDIAN 1
#else
#error Unknown endian
#endif
|