+2024-12-28 Bruno Haible <bruno@clisp.org>
+
+ wchar: Fix wcrtomb prototype conflict in C++ mode on OpenBSD 6.0.
+ * lib/wchar.in.h (rpl_mbstate_t): Don't define on OpenBSD.
+
2024-12-24 Bruno Haible <bruno@clisp.org>
access, euidaccess tests: Avoid test failure in Cygwin 3.5.5.
/* Override mbstate_t if it is too small.
On IRIX 6.5, sizeof (mbstate_t) == 1, which is not sufficient for
implementing mbrtowc for encodings like UTF-8.
- On AIX and MSVC, mbrtowc needs to be overridden, but mbstate_t exists and is
- large enough and overriding it would cause problems in C++ mode. */
+ On AIX, MSVC, and OpenBSD 6.0, mbrtowc needs to be overridden, but
+ mbstate_t exists and is large enough and overriding it would cause problems
+ in C++ mode. */
#if !(((defined _WIN32 && !defined __CYGWIN__) || @HAVE_MBSINIT@) && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@
# if !GNULIB_defined_mbstate_t
-# if !(defined _AIX || defined _MSC_VER)
+# if !(defined _AIX || defined _MSC_VER || defined __OpenBSD__)
typedef int rpl_mbstate_t;
# undef mbstate_t
# define mbstate_t rpl_mbstate_t