summaryrefslogtreecommitdiffstats
path: root/ccan
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ccan/ccan/endian/endian.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ccan/ccan/endian/endian.h b/ccan/ccan/endian/endian.h
index 3753f49..ae96b51 100644
--- a/ccan/ccan/endian/endian.h
+++ b/ccan/ccan/endian/endian.h
@@ -104,8 +104,10 @@ static inline uint64_t bswap_64(uint64_t val)
#endif
/* Needed for Glibc like endiness check */
+#ifndef __LITTLE_ENDIAN
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
+#endif
/* Sanity check the defines. We don't handle weird endianness. */
#if !HAVE_LITTLE_ENDIAN && !HAVE_BIG_ENDIAN