Re: [bug-gnulib] proposed patch to gettext.h for gcc -ansi -pedantic

2006-11-27 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > - I don't want to rely on __STDC_VERSION__ for the reasons explained in > http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00354.html, But this case is different. Here, __STDC_VERSION__ is inspected only if GCC 3 or later, so __STDC_VERSION

Re: [bug-gnulib] proposed patch to gettext.h for gcc -ansi -pedantic

2006-11-27 Thread Bruno Haible
Paul Eggert wrote: > gettext.h also has a problem with gcc -ansi -pedantic: it uses the > [restrict] syntax in that case, but GCC complains about it since > [restrict] isn't in C89. Here's a proposed patch: > > 2006-11-26 Paul Eggert <[EMAIL PROTECTED]> > > * lib/gettext.h (_LIBGETTEXT_H

proposed patch to gettext.h for gcc -ansi -pedantic

2006-11-26 Thread Paul Eggert
gettext.h also has a problem with gcc -ansi -pedantic: it uses the [restrict] syntax in that case, but GCC complains about it since [restrict] isn't in C89. Here's a proposed patch: 2006-11-26 Paul Eggert <[EMAIL PROTECTED]> * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):