]> Savannah Git Hosting - gnulib.git/commitdiff
wchar_h: Fix for glibc 2.5.
authorBruno Haible <bruno@clisp.org>
Thu, 16 Jan 2025 20:14:45 +0000 (21:14 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 18 Jan 2025 08:17:15 +0000 (09:17 +0100)
* lib/wchar.in.h (__need_wint_t): Clean up after including glibc's
<wchar.h>.

ChangeLog
lib/wchar.in.h

index eb40d0d685f4a4d1bf4a61a800d016cbb7ece305..56f26dba47f4cc08d4125e7f780fa7f8ee3720b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-01-16  Bruno Haible  <bruno@clisp.org>
+
+       wchar_h: Fix for glibc 2.5.
+       * lib/wchar.in.h (__need_wint_t): Clean up after including glibc's
+       <wchar.h>.
+
 2025-01-15  Pádraig Brady  <P@draigBrady.com>
 
        file-has-acl: handle listxattr returning ENOTSUP
index 41507f6cc583d9aa31eac372a8f91ef7844eb58d..c20040b22c6ddb9ef91565ae6ebcf785dd449108 100644 (file)
@@ -53,6 +53,9 @@
      <wctype.h> is completely included or is still being included.  */
 
 #@INCLUDE_NEXT@ @NEXT_WCHAR_H@
+/* The glibc 2.5 /usr/include/wchar.h defines __need_wint_t but never undefines
+   it.  We need to do that here.  */
+#undef __need_wint_t
 
 #else
 /* Normal invocation convention.  */