From: Bruno Haible Date: Thu, 15 Jun 2017 20:51:11 +0000 (+0200) Subject: gettext.h: Update theoretical condition for use of variable size arrays. X-Git-Tag: v0.20~458 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df827ef0bd0b0f858cc6dfd6ea83a4502e5f13b;p=thirdparty%2Fgettext.git gettext.h: Update theoretical condition for use of variable size arrays. Reported by Paul Eggert. * gnulib-local/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/gnulib-local/lib/gettext.h b/gnulib-local/lib/gettext.h index 75f59f609..ff7a8ed3c 100644 --- a/gnulib-local/lib/gettext.h +++ b/gnulib-local/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