+2022-09-03 Bruno Haible <bruno@clisp.org>
+
+ Fix a compilation error in C++ mode on Solaris 11.4.
+ * lib/uchar.in.h (c32rtomb): Enable the C++ alias warning only on
+ glibc ≥ 2.16 systems. Fix a GNULIB_POSIXCHECK mistake.
+ (mbrtoc32): Enable the C++ alias warning only on glibc ≥ 2.16 systems.
+
2022-09-03 Bruno Haible <bruno@clisp.org>
Fix compilation errors of C++ tests on Solaris 10 with Sun C++.
# endif
_GL_CXXALIAS_SYS (c32rtomb, size_t, (char *s, char32_t wc, mbstate_t *ps));
# endif
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 16) > 2
_GL_CXXALIASWARN (c32rtomb);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef c32rtomb
# if HAVE_RAW_DECL_C32RTOMB
-_GL_WARN_ON_USE (mbrtoc32, "c32rtomb is not portable - "
+_GL_WARN_ON_USE (c32rtomb, "c32rtomb is not portable - "
"use gnulib module c32rtomb for portability");
# endif
#endif
_GL_CXXALIAS_SYS (mbrtoc32, size_t,
(char32_t *pc, const char *s, size_t n, mbstate_t *ps));
# endif
+# if __GLIBC__ + (__GLIBC_MINOR__ >= 16) > 2
_GL_CXXALIASWARN (mbrtoc32);
+# endif
#elif defined GNULIB_POSIXCHECK
# undef mbrtoc32
# if HAVE_RAW_DECL_MBRTOC32