From ebc9ff55e02a81a0c87462e4894401f2e7aaac2a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 16 Sep 2024 11:22:36 +0200 Subject: [PATCH] wchar: Fix compilation error (regression yesterday). * lib/wchar.in.h (btowc): Use _GL_FUNCATTR_RPL, _GL_FUNCATTR_SYS here as well. --- ChangeLog | 6 ++++++ lib/wchar.in.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4262f8a990..21c10f8d5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-09-16 Bruno Haible + + wchar: Fix compilation error (regression yesterday). + * lib/wchar.in.h (btowc): Use _GL_FUNCATTR_RPL, _GL_FUNCATTR_SYS here + as well. + 2024-09-15 Paul Eggert Port July changes for [[...]] to C17 diff --git a/lib/wchar.in.h b/lib/wchar.in.h index c7db23bef4..9be9a60efe 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -269,11 +269,11 @@ _GL_EXTERN_C void free (void *); # undef btowc # define btowc rpl_btowc # endif -_GL_FUNCDECL_RPL (btowc, wint_t, (int c), _GL_ATTRIBUTE_PURE); +_GL_FUNCATTR_RPL (btowc, wint_t, (int c), _GL_ATTRIBUTE_PURE); _GL_CXXALIAS_RPL (btowc, wint_t, (int c)); # else # if !@HAVE_BTOWC@ -_GL_FUNCDECL_SYS (btowc, wint_t, (int c), _GL_ATTRIBUTE_PURE); +_GL_FUNCATTR_SYS (btowc, wint_t, (int c), _GL_ATTRIBUTE_PURE); # endif /* Need to cast, because on mingw, the return type is 'unsigned short'. */ _GL_CXXALIAS_SYS_CAST (btowc, wint_t, (int c)); -- 2.39.5