]>
Commit | Line | Data |
---|---|---|
91314f91 AM |
1 | Index: gconv.h |
2 | =================================================================== | |
3 | RCS file: /cvs/glibc/libc/iconv/gconv.h,v | |
4 | retrieving revision 1.26 | |
5 | retrieving revision 1.27 | |
6 | diff -u -r1.26 -r1.27 | |
7 | --- libc/iconv/gconv.h 2000/11/20 08:49:09 1.26 | |
8 | +++ libc/iconv/gconv.h 2000/11/27 17:52:35 1.27 | |
9 | @@ -168,7 +168,7 @@ | |
10 | { | |
11 | size_t __nsteps; | |
12 | struct __gconv_step *__steps; | |
13 | - __extension__ struct __gconv_step_data __data[0]; | |
14 | + __extension__ struct __gconv_step_data __data __flexarr; | |
15 | } *__gconv_t; | |
16 | ||
17 | #endif /* gconv.h */ | |
18 | Index: cdefs.h | |
19 | =================================================================== | |
20 | RCS file: /cvs/glibc/libc/misc/sys/cdefs.h,v | |
21 | retrieving revision 1.40 | |
22 | retrieving revision 1.41 | |
23 | diff -u -r1.40 -r1.41 | |
24 | --- libc/misc/sys/cdefs.h 2000/10/07 22:23:10 1.40 | |
25 | +++ libc/misc/sys/cdefs.h 2000/11/27 17:51:56 1.41 | |
26 | @@ -93,6 +93,24 @@ | |
27 | #endif | |
28 | ||
29 | ||
30 | +/* Support for flexible arrays. */ | |
31 | +#if __GNUC_PREREQ (2,97) | |
32 | +/* GCC 2.97 supports C99 flexible array members. */ | |
33 | +# define __flexarr [] | |
34 | +#else | |
35 | +# ifdef __GNUC__ | |
36 | +# define __flexarr [0] | |
37 | +# else | |
cedfe253 | 38 | +# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L |
91314f91 AM |
39 | +# define __flexarr [] |
40 | +# else | |
41 | +/* Some other non-C99 compiler. Approximate with [1]. */ | |
42 | +# define __flexarr [1] | |
43 | +# endif | |
44 | +# endif | |
45 | +#endif | |
46 | + | |
47 | + | |
48 | /* __asm__ ("xyz") is used throughout the headers to rename functions | |
49 | at the assembly language level. This is wrapped by the __REDIRECT | |
50 | macro, in order to support compilers that can do this some other |