summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-09-10 18:20:58 +0200
committerBruno Haible <bruno@clisp.org>2022-09-10 18:21:21 +0200
commit36bd8062527050e73fa2e4616d1a538a5d2baae0 (patch)
tree8f75a0a7e0034bbcb6d2e8f464468e1b2c4d849c /lib
parent611341cda0e576bf574e78fdfbb5ffae2ad3b869 (diff)
downloadgnulib-36bd8062527050e73fa2e4616d1a538a5d2baae0.tar.gz
string: Fix compilation error in C++ mode on AIX 7.2 with xlclang.
* lib/string.in.h (mbslen): Enable the C++ alias warning only on glibc systems.
Diffstat (limited to 'lib')
-rw-r--r--lib/string.in.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/string.in.h b/lib/string.in.h
index 3996da9fcb..e56f6db0c9 100644
--- a/lib/string.in.h
+++ b/lib/string.in.h
@@ -943,7 +943,9 @@ _GL_FUNCDECL_SYS (mbslen, size_t, (const char *string)
_GL_ARG_NONNULL ((1)));
_GL_CXXALIAS_SYS (mbslen, size_t, (const char *string));
# endif
+# if __GLIBC__ >= 2
_GL_CXXALIASWARN (mbslen);
+# endif
#endif
#if @GNULIB_MBSNLEN@