source: scripts/patches/glibc-2.3.4-allow-gcc-4.0-iconvdata.patch@ ec96aa6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since ec96aa6 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 1.7 KB
  • glibc-2.3-20050307/iconvdata/jis0208.h

    Submitted By: Ryan Oliver <ryan.oliver@pha.com.au>
    Date: 2005-05-03
    Initial Package Version: 2.3.4
    Origin: Dan Kegel's crosstool ( http://kegel.com/crosstool/ )
    Upstream Status: Fixed in glibc cvs ( libc/iconvdata/jis0208.h -r1.10 )
    Description: (struct jisx0208_ucs_idx): Move before use
    
    See http://sources.redhat.com/ml/libc-hacker/2005-02/msg00000.html
    and http://www.mail-archive.com/pld-cvs-commit@pld-linux.org/msg00229.html
    
    Fixes
      In file included from jis0208.c:23:
      jis0208.h:32: error: array type has incomplete element type
    when building glibc with gcc-4.0
    The bug has been present since at least glibc-2.2.5.
    This patch applies cleanly to glibc-2.3.4
    
    old new  
    2424#include <gconv.h>
    2525#include <stdint.h>
    2626
    27 /* Conversion table.  */
    28 extern const uint16_t __jis0208_to_ucs[];
    29 
    30 extern const char __jisx0208_from_ucs4_lat1[256][2];
    31 extern const char __jisx0208_from_ucs4_greek[0xc1][2];
    32 extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[];
    33 extern const char __jisx0208_from_ucs_tab[][2];
    34 
    35 
    3627/* Struct for table with indeces in UCS mapping table.  */
    3728struct jisx0208_ucs_idx
    3829{
     
    4233};
    4334
    4435
     36/* Conversion table.  */
     37extern const uint16_t __jis0208_to_ucs[];
     38
     39extern const char __jisx0208_from_ucs4_lat1[256][2];
     40extern const char __jisx0208_from_ucs4_greek[0xc1][2];
     41extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[];
     42extern const char __jisx0208_from_ucs_tab[][2];
     43
     44
    4545static inline uint32_t
    4646__attribute ((always_inline))
    4747jisx0208_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset)
Note: See TracBrowser for help on using the repository browser.