From dde057cb2017ec51215aaa6bbf86bbb1ba3c0e27 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 16 Aug 2020 16:07:23 +0200 Subject: [PATCH] Optimize also for clang. * gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Set to 1 also on clang. --- gnulib-local/lib/gettext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3