summaryrefslogtreecommitdiff
path: root/.pc/ftbfs-big-endian.patch/config.h
diff options
context:
space:
mode:
Diffstat (limited to '.pc/ftbfs-big-endian.patch/config.h')
-rw-r--r--.pc/ftbfs-big-endian.patch/config.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/.pc/ftbfs-big-endian.patch/config.h b/.pc/ftbfs-big-endian.patch/config.h
new file mode 100644
index 0000000..0109c4a
--- /dev/null
+++ b/.pc/ftbfs-big-endian.patch/config.h
@@ -0,0 +1,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
+