From: Bruno Haible Date: Sun, 16 Aug 2020 14:07:23 +0000 (+0200) Subject: Optimize also for clang. X-Git-Tag: v0.21.1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc6f97b9accbdc935185dc3579d78075b029a090;p=thirdparty%2Fgettext.git Optimize also for clang. * gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Set to 1 also on clang. --- diff --git a/gnulib-local/lib/gettext.h b/gnulib-local/lib/gettext.h index 51d674c1d..3d3840f9f 100644 --- a/gnulib-local/lib/gettext.h +++ b/gnulib-local/lib/gettext.h @@ -191,7 +191,7 @@ npgettext_aux (const char *domain, or may have security implications due to non-deterministic stack usage. */ #if (!defined GNULIB_NO_VLA \ - && (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \ + && (((__GNUC__ >= 3 || defined __clang__) && !defined __STRICT_ANSI__) \ /* || (__STDC_VERSION__ == 199901L && !defined __HP_cc) || (__STDC_VERSION__ >= 201112L && !defined __STDC_NO_VLA__) */ )) # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1