]> Savannah Git Hosting - gnulib.git/commit
gettext-h: use VLA test similar to regex
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 27 Nov 2021 08:33:24 +0000 (00:33 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 27 Nov 2021 08:51:22 +0000 (00:51 -0800)
commit914fe7e1a241dc10f333eff181175266e05bf972
tree723a3cc0a83da70af234f93ec50e3febb1397f6c
parentb9c0c4a79d336fc3ae5ac71f2d5e85e553812fa2
gettext-h: use VLA test similar to regex

* lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Assuming
GNULIB_NO_VLA, define if (defined __STDC_VERSION__ && 199901L <=
__STDC_VERSION__ \ + && !defined __STDC_NO_VLA___), not if
((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__).
This is more consistent with what the regex module does.
* modules/gettext-h (Depends-on): Depend on vararrays, since
lib/gettext.h uses __STDC_NO_VLA__.
ChangeLog
lib/gettext.h
modules/gettext-h