Mercurial > hg > octave-nkf > gnulib-hg
changeset 7690:a9847370afd4
Avoid using variable size arrays if gcc does not allow them.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 27 Nov 2006 14:17:38 +0000 |
parents | b4806b1ec9e4 |
children | 33b654c2cba8 |
files | ChangeLog lib/gettext.h |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-11-27 Paul Eggert <eggert@cs.ucla.edu> + Bruno Haible <bruno@clisp.org> + + * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0 + if compiling with "gcc -ansi". + 2006-11-26 Paul Eggert <eggert@cs.ucla.edu> Fix some incompatibilities with gcc -ansi -pedantic.
--- a/lib/gettext.h +++ b/lib/gettext.h @@ -169,7 +169,8 @@ #include <string.h> #define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \ - (__GNUC__ >= 3 || __GNUG__ >= 2 /* || __STDC_VERSION__ >= 199901L */ ) + (((__GNUC__ >= 3 || __GNUG__ >= 2) && !__STRICT_ANSI__) \ + /* || __STDC_VERSION__ >= 199901L */ ) #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS #include <stdlib.h>