about summary refs log tree commit diff
path: root/posix/regcomp.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-12-29 17:32:25 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-04 08:38:52 -0300
commitc2a150d089fa096cb5f9e342da80fb30dc0d1953 (patch)
tree9fc88708b64fb0d2d4a2d5647e865922223cb898 /posix/regcomp.c
parentfee3b889d88193eb3cebaab2bcf60e39ce84d369 (diff)
downloadglibc-c2a150d089fa096cb5f9e342da80fb30dc0d1953.tar.gz
glibc-c2a150d089fa096cb5f9e342da80fb30dc0d1953.tar.xz
glibc-c2a150d089fa096cb5f9e342da80fb30dc0d1953.zip
posix: Sync regex code with gnulib
It sync with gnulib commit 43ee1a6bf.  The main change is 9682f18e9.
(which does not have a meaniful description).

Checked on x86_64-linux-gnu.
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r--posix/regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c
index e28e3701db..d93698ae78 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -558,7 +558,7 @@ weak_alias (__regerror, regerror)
 static const bitset_t utf8_sb_map =
 {
   /* Set the first 128 bits.  */
-# if defined __GNUC__ && !defined __STRICT_ANSI__
+# if (defined __GNUC__ || __clang_major__ >= 4) && !defined __STRICT_ANSI__
   [0 ... 0x80 / BITSET_WORD_BITS - 1] = BITSET_WORD_MAX
 # else
 #  if 4 * BITSET_WORD_BITS < ASCII_CHARS