[Michal Moskal <malekith@pld.org.pl>] libc/1931: gconv.h uses array of size [0], ANSI C complier cannot compile hello.c
Andreas Jaeger
aj@suse.de
Mon Nov 27 02:34:00 GMT 2000
We've received the appended bug report. Here's a fix. Ok to commit?
Andreas
2000-11-27 Andreas Jaeger <aj@suse.de>
* iconv/gconv.h (__gconv_info): Don't use zero sized array for non
GCC compilers.
Closes PR libc/1931, reported by Michal Moskal <malekith@pld.org.pl>.
============================================================
Index: iconv/gconv.h
--- iconv/gconv.h 2000/11/20 08:49:09 1.26
+++ iconv/gconv.h 2000/11/27 10:34:02
@@ -168,7 +168,11 @@
{
size_t __nsteps;
struct __gconv_step *__steps;
+# ifdef __GNUC__
__extension__ struct __gconv_step_data __data[0];
+# else
+ struct __gconv_step_data *__data [1];
+# endif
} *__gconv_t;
#endif /* gconv.h */
More information about the Libc-alpha
mailing list