]> Savannah Git Hosting - gnulib.git/commitdiff
string: Fix compilation error in C++ mode on AIX 7.2 with xlclang.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Sep 2022 16:20:58 +0000 (18:20 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Sep 2022 00:57:56 +0000 (02:57 +0200)
* lib/string.in.h (mbslen): Enable the C++ alias warning only on glibc
systems.

ChangeLog
lib/string.in.h

index 667d632e64c35445cc64940729b55eec16b99974..269813133c87dbf6bbc5b467e1b27a59dfdcb97a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-10  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
 2022-09-10  Bruno Haible  <bruno@clisp.org>
 
        math: Fix compilation error in C++ mode on AIX 7.2 with xlclang.
index 3996da9fcb5d4f3edee938d5565004e450809908..e56f6db0c9ca7bcd4deecbd1cbd29f4750d8d6b2 100644 (file)
@@ -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@