From: Bruno Haible Date: Thu, 15 Jun 2017 20:58:28 +0000 (+0200) Subject: gettext-h: Update theoretical condition for use of variable size arrays. X-Git-Tag: v1.0~6095 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a750b78e690bd66699c65859380ce0fe4e0d3685;p=gnulib.git gettext-h: Update theoretical condition for use of variable size arrays. Reported by Paul Eggert. * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment to include the theoretical condition for availability of variable size arrays, if we could trust the value of __STDC_VERSION__. --- diff --git a/ChangeLog b/ChangeLog index 2b64f0801b..2e332a4138 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2017-06-15 Bruno Haible + + gettext-h: Update theoretical condition for use of variable size arrays. + Reported by Paul Eggert. + * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment + to include the theoretical condition for availability of variable size + arrays, if we could trust the value of __STDC_VERSION__. + 2017-06-12 Bruno Haible Relicense some modules under LGPLv2+. diff --git a/lib/gettext.h b/lib/gettext.h index 2a12bb6c4a..fe56204f12 100644 --- a/lib/gettext.h +++ b/lib/gettext.h @@ -185,7 +185,8 @@ npgettext_aux (const char *domain, #include #if (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \ - /* || __STDC_VERSION__ >= 199901L */ ) + /* || __STDC_VERSION__ == 199901L + || (__STDC_VERSION__ >= 201112L && !defined __STDC_NO_VLA__) */ ) # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1 #else # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0