From 0df827ef0bd0b0f858cc6dfd6ea83a4502e5f13b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 15 Jun 2017 22:51:11 +0200 Subject: [PATCH] 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__. --- gnulib-local/lib/gettext.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3