From: Bruno Haible Date: Mon, 27 Nov 2006 14:17:38 +0000 (+0000) Subject: Avoid using variable size arrays if gcc does not allow them. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a7c1b76666d64febabe033441b974a3d2ae682e;p=pspp Avoid using variable size arrays if gcc does not allow them. --- diff --git a/ChangeLog b/ChangeLog index 3fa63a7162..972495fc21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-11-27 Paul Eggert + Bruno Haible + + * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0 + if compiling with "gcc -ansi". + 2006-11-26 Paul Eggert Fix some incompatibilities with gcc -ansi -pedantic. diff --git a/lib/gettext.h b/lib/gettext.h index 18c62a4067..9d76ec9afc 100644 --- a/lib/gettext.h +++ b/lib/gettext.h @@ -169,7 +169,8 @@ npgettext_aux (const char *domain, #include #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