bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mbrtoc16: Fix compilation error on Haiku


From: Bruno Haible
Subject: mbrtoc16: Fix compilation error on Haiku
Date: Tue, 13 Aug 2024 08:41:44 +0200

On Haiku, I'm seeing a compilation error in the unit test of mbrtoc16.
The cause is that mbrtoc16 is not declared, because of this typo and
because Haiku has mbrtoc32 but not mbrtoc16.


2024-08-13  Bruno Haible  <bruno@clisp.org>

        mbrtoc16: Fix compilation error on Haiku.
        * lib/uchar.in.h (mbrtoc16): Fix typo.

diff --git a/lib/uchar.in.h b/lib/uchar.in.h
index a94322b88b..9f2360471e 100644
--- a/lib/uchar.in.h
+++ b/lib/uchar.in.h
@@ -668,7 +668,7 @@ _GL_FUNCDECL_RPL (mbrtoc16, size_t,
 _GL_CXXALIAS_RPL (mbrtoc16, size_t,
                   (char16_t *pc, const char *s, size_t n, mbstate_t *ps));
 # else
-#  if !@HAVE_MBRTOC32@
+#  if !@HAVE_MBRTOC16@
 _GL_FUNCDECL_SYS (mbrtoc16, size_t,
                   (char16_t *pc, const char *s, size_t n, mbstate_t *ps));
 #  endif






reply via email to

[Prev in Thread] Current Thread [Next in Thread]