1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-20 04:00:35 +02:00
openwrt-xburst/tools/mtd-utils/patches/100-gcc4_fix.patch
hauke 4ca144deb8 tools: refresh patches for tools
lua, mtd-utils, ipkg-utils, squashfs, lzma, and autoconf are touched


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14589 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-21 14:46:03 +00:00

23 lines
677 B
Diff

--- a/include/mtd/jffs2-user.h
+++ b/include/mtd/jffs2-user.h
@@ -19,8 +19,6 @@
#undef je32_to_cpu
#undef jemode_to_cpu
-extern int target_endian;
-
#define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); })
#define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); })
--- a/util/jffs3.h
+++ b/util/jffs3.h
@@ -177,8 +177,6 @@ union jffs3_node_union {
#undef je32_to_cpu
#undef jemode_to_cpu
-extern int target_endian;
-
#define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); })
#define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); })