summaryrefslogtreecommitdiffstats
path: root/gl/wcrtomb.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/wcrtomb.c')
-rw-r--r--gl/wcrtomb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gl/wcrtomb.c b/gl/wcrtomb.c
index 48a6c8eb..a9b8de78 100644
--- a/gl/wcrtomb.c
+++ b/gl/wcrtomb.c
@@ -1,5 +1,5 @@
1/* Convert wide character to multibyte character. 1/* Convert wide character to multibyte character.
2 Copyright (C) 2008-2023 Free Software Foundation, Inc. 2 Copyright (C) 2008-2026 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2008. 3 Written by Bruno Haible <bruno@clisp.org>, 2008.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
@@ -29,14 +29,14 @@ wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
29#undef wcrtomb 29#undef wcrtomb
30{ 30{
31 /* This implementation of wcrtomb supports only stateless encodings. 31 /* This implementation of wcrtomb supports only stateless encodings.
32 ps must be in the initial state. */ 32 ps must be in an initial state. */
33 if (ps != NULL && !mbsinit (ps)) 33 if (ps != NULL && !mbsinit (ps))
34 { 34 {
35 errno = EINVAL; 35 errno = EINVAL;
36 return (size_t)(-1); 36 return (size_t)(-1);
37 } 37 }
38 38
39#if !HAVE_WCRTOMB /* IRIX 6.5 */ \ 39#if !HAVE_WCRTOMB /* HP-UX 11.00, mingw */ \
40 || WCRTOMB_RETVAL_BUG /* Solaris 11.3, MSVC */ \ 40 || WCRTOMB_RETVAL_BUG /* Solaris 11.3, MSVC */ \
41 || WCRTOMB_C_LOCALE_BUG /* Android */ 41 || WCRTOMB_C_LOCALE_BUG /* Android */
42 if (s == NULL) 42 if (s == NULL)
@@ -62,7 +62,7 @@ wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
62# else 62# else
63 return wcrtomb (s, wc, ps); 63 return wcrtomb (s, wc, ps);
64# endif 64# endif
65#else /* IRIX 6.5 */ 65#else /* HP-UX 11.00, mingw */
66 /* Fallback for platforms that don't have wcrtomb(). 66 /* Fallback for platforms that don't have wcrtomb().
67 Implement on top of wctomb(). 67 Implement on top of wctomb().
68 This code is not multithread-safe. */ 68 This code is not multithread-safe. */