]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
gettext.h: Update theoretical condition for use of variable size arrays.
authorBruno Haible <bruno@clisp.org>
Thu, 15 Jun 2017 20:51:11 +0000 (22:51 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 15 Jun 2017 20:58:07 +0000 (22:58 +0200)
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

index 75f59f609a70d15d68afdfd8caccd87bda1f1c78..ff7a8ed3cb965b5baee419f0925f1074f5f505aa 100644 (file)
@@ -185,7 +185,8 @@ npgettext_aux (const char *domain,
 #include <string.h>
 
 #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