source: freewrt/tools/jffs2/patches/gcc4-fix.patch@ 1444c95

freewrt_1_0 freewrt_2_0
Last change on this file since 1444c95 was a09b227, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

mv mkfs.jffs2 to tools, broken commit, tg will fix it soon

git-svn-id: svn://www.freewrt.org/trunk/freewrt@248 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1004 bytes
  • include/mtd/jffs2-user.h

    diff -urN mtd-20050122.orig.old/include/mtd/jffs2-user.h mtd-20050122.orig.dev/include/mtd/jffs2-user.h
    old new  
    1919#undef je32_to_cpu
    2020#undef jemode_to_cpu
    2121
    22 extern int target_endian;
    23 
    2422#define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); })
    2523#define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); })
    2624
  • util/jffs3.h

    diff -urN mtd.old/util/jffs3.h mtd.dev/util/jffs3.h
    old new  
    177177#undef je32_to_cpu
    178178#undef jemode_to_cpu
    179179
    180 extern int target_endian;
    181 
    182180#define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); })
    183181#define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); })
    184182
Note: See TracBrowser for help on using the repository browser.