]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Optimize also for clang.
authorBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 14:07:23 +0000 (16:07 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
* gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Set to 1
also on clang.

gnulib-local/lib/gettext.h

index 51d674c1db7ce853577ed4570738d682adfa4243..3d3840f9fcde4080ce3aff097ea73a23ce6e9417 100644 (file)
@@ -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