[Michal Moskal <malekith@pld.org.pl>] libc/1931: gconv.h uses array of size [0], ANSI C complier cannot compile hello.c

Richard Henderson rth@twiddle.net
Tue Nov 28 15:51:00 GMT 2000


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~


More information about the Libc-alpha mailing list