]> Savannah Git Hosting - gnulib.git/commitdiff
wchar: Fix compilation error (regression yesterday).
authorBruno Haible <bruno@clisp.org>
Mon, 16 Sep 2024 09:22:36 +0000 (11:22 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 16 Sep 2024 09:22:36 +0000 (11:22 +0200)
* lib/wchar.in.h (btowc): Use _GL_FUNCATTR_RPL, _GL_FUNCATTR_SYS here
as well.

ChangeLog
lib/wchar.in.h

index 4262f8a9902b7fd028319814699c213a2b5407b2..21c10f8d5dd4c15b975fd27b295e9c289ed5eabc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-09-16  Bruno Haible  <bruno@clisp.org>
+
+       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  <eggert@cs.ucla.edu>
 
        Port July changes for [[...]] to C17
index c7db23bef4f2943abd8531fe4be32399ed75c41a..9be9a60efe6991198bf773d0710c263cb6ec503c 100644 (file)
@@ -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));