# HG changeset patch # User Jim Meyering # Date 963582967 0 # Node ID 9a19b8afa1d88be64ae206b8bf8a1573afa18f4b # Parent cd757872b012e1332025b68be6a39a346e4b0435 (mbrtowc): Do not use HAVE_WCHAR_H in the definition. Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT, to decide whether to define the BeOS workaround macro; this adjusts to the change to AC_MBSTATE_T. diff --git a/lib/quotearg.c b/lib/quotearg.c --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -63,9 +63,9 @@ # include #endif -#if HAVE_MBRTOWC && HAVE_WCHAR_H +#if HAVE_MBRTOWC size_t mbrtowc (); -# if !HAVE_MBSTATE_T_OBJECT +# ifdef mbstate_t # define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0) # endif #else