source: freewrt/target/linux/image/jffs2/patches/gcc4-fix.patch@ 475ad56

freewrt_1_0 freewrt_2_0
Last change on this file since 475ad56 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 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.