* lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
* doc/posix-functions/wcsnrtombs.texi: Mention the issue.
+2019-12-04 Bruno Haible <bruno@clisp.org>
+
+ Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
+ * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
+ * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
+
2019-12-04 Bruno Haible <bruno@clisp.org>
Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
This function cannot consume valid sequences of wide characters
on some platforms:
Solaris 11.4.
+@item
+In C++ mode, the system's @code{<wchar.h>} defines @code{std::wcsnrtombs} but
+not @code{::wcsnrtombs} on some platforms:
+Solaris 11 OpenIndiana.
@end itemize
Portability problems not fixed by Gnulib:
(char *dest, const wchar_t **srcp, size_t srclen, size_t len,
mbstate_t *ps));
# else
-# if !@HAVE_WCSNRTOMBS@
+# if !@HAVE_WCSNRTOMBS@ || (defined __cplusplus && defined __sun)
_GL_FUNCDECL_SYS (wcsnrtombs, size_t,
(char *dest, const wchar_t **srcp, size_t srclen, size_t len,
mbstate_t *ps)