]> git.ozlabs.org Git - petitboot/blobdiff - lib/flash/config.h
lib/flash: Add support for platform versions
[petitboot] / lib / flash / config.h
diff --git a/lib/flash/config.h b/lib/flash/config.h
new file mode 100644 (file)
index 0000000..a132a01
--- /dev/null
@@ -0,0 +1,19 @@
+/* For CCAN */
+
+#include <endian.h>
+#include <byteswap.h>
+
+#define HAVE_TYPEOF                    1
+#define HAVE_BUILTIN_TYPES_COMPATIBLE_P        1
+
+
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+#define HAVE_BIG_ENDIAN         0
+#define HAVE_LITTLE_ENDIAN      1
+#else
+#define HAVE_BIG_ENDIAN         1
+#define HAVE_LITTLE_ENDIAN      0
+#endif
+
+#define HAVE_BYTESWAP_H 1
+#define HAVE_BSWAP_64  1