From 933493d31cbdd43a6f446215da5f5c946812c483 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 16 Sep 2024 13:24:48 +0200 Subject: [PATCH] wchar: Fix compilation error (regression yesterday). * lib/wchar.in.h (wctob): Use _GL_FUNCATTR_RPL, _GL_FUNCATTR_SYS here as well. --- ChangeLog | 4 ++++ lib/wchar.in.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.5