From: Paul Eggert Date: Mon, 23 Dec 2024 20:23:22 +0000 (-0800) Subject: stdlib: MB_CUR_MAX is type size_t X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=63eaf65372eba92729bdb4205f2ec7fc9f861015;p=gnulib.git stdlib: MB_CUR_MAX is type size_t * lib/stdlib.in.h (gl_MB_CUR_MAX): Return size_t, not int, to conform to POSIX. --- diff --git a/ChangeLog b/ChangeLog index e6d2e1d592..90a80123a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-12-23 Paul Eggert + + stdlib: MB_CUR_MAX is type size_t + * lib/stdlib.in.h (gl_MB_CUR_MAX): Return size_t, not int, + to conform to POSIX. + 2024-12-23 Bruno Haible mbrtowc tests: Test in the UTF-8 environment on native Windows. diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index adbef69131..43430dfe68 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -749,7 +749,7 @@ _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - " /* Return maximum number of bytes of a multibyte character. */ #if @REPLACE_MB_CUR_MAX@ # if !GNULIB_defined_MB_CUR_MAX -_GL_STDLIB_INLINE int +_GL_STDLIB_INLINE size_t gl_MB_CUR_MAX (void) { /* Turn the value 3 to the value 4, as needed for the UTF-8 encoding. */