This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [Michal Moskal <malekith@pld.org.pl>] libc/1931: gconv.h uses array of size [0], ANSI C complier cannot compile hello.c
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: [Michal Moskal <malekith@pld.org.pl>] libc/1931: gconv.h uses array of size [0], ANSI C complier cannot compile hello.c
- From: Richard Henderson <rth at twiddle dot net>
- Date: Tue, 28 Nov 2000 15:51:40 -0800
- Cc: Andreas Jaeger <aj at suse dot de>, libc-alpha at sources dot redhat dot com, Michal Moskal <malekith at pld dot org dot pl>
- References: <hoy9y5d7ps.fsf@gee.suse.de> <Pine.SOL.4.21.0011271128200.18178-100000@yellow.csi.cam.ac.uk>
On Mon, Nov 27, 2000 at 11:34:10AM +0000, Joseph S. Myers wrote:
> /* Some other non-C99 compiler. Approximate with [1]. */
> #define __flexarr [1]
But this changes the size of the structure. I think you
should leave __flexarr undefined in this case and then
omit the structure member.
Hmm.. but that could also change the structure, since it
could affect padding and alignment.
r~