From: Bruno Haible Date: Mon, 16 Sep 2024 11:24:48 +0000 (+0200) Subject: wchar: Fix compilation error (regression yesterday). X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=933493d31cbdd43a6f446215da5f5c946812c483;p=gnulib.git wchar: Fix compilation error (regression yesterday). * lib/wchar.in.h (wctob): Use _GL_FUNCATTR_RPL, _GL_FUNCATTR_SYS here as well. --- diff --git a/ChangeLog b/ChangeLog index 21c10f8d5d..d1dbeec233 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2024-09-16 Bruno Haible + wchar: Fix compilation error (regression yesterday). + * lib/wchar.in.h (wctob): Use _GL_FUNCATTR_RPL, _GL_FUNCATTR_SYS here + as well. + wchar: Fix compilation error (regression yesterday). * lib/wchar.in.h (btowc): Use _GL_FUNCATTR_RPL, _GL_FUNCATTR_SYS here as well. diff --git a/lib/wchar.in.h b/lib/wchar.in.h index 9be9a60efe..8cf956dd4c 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -297,12 +297,12 @@ _GL_WARN_ON_USE (btowc, "btowc is unportable - " # undef wctob # define wctob rpl_wctob # endif -_GL_FUNCDECL_RPL (wctob, int, (wint_t wc), _GL_ATTRIBUTE_PURE); +_GL_FUNCATTR_RPL (wctob, int, (wint_t wc), _GL_ATTRIBUTE_PURE); _GL_CXXALIAS_RPL (wctob, int, (wint_t wc)); # else # if !defined wctob && !@HAVE_DECL_WCTOB@ /* wctob is provided by gnulib, or wctob exists but is not declared. */ -_GL_FUNCDECL_SYS (wctob, int, (wint_t wc), _GL_ATTRIBUTE_PURE); +_GL_FUNCATTR_SYS (wctob, int, (wint_t wc), _GL_ATTRIBUTE_PURE); # endif _GL_CXXALIAS_SYS (wctob, int, (wint_t wc)); # endif