]> 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:35:28 +0000 (09:35 +0100)
* lib/wchar.in.h (__need_wint_t): Clean up after including glibc's
<wchar.h>.

ChangeLog
lib/wchar.in.h

index e49455b109cb8b78817200151b1deadd68ca9b52..5d4022fb472899b4b151c7b34a4e6b5aa9bf00af 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-14  Bruno Haible  <bruno@clisp.org>
 
        assert-h: Fix compilation error with gcc >= 13 on Solaris 11.
index c70dbcb5ac99ddd5c23fa19c9c1bbeec02766e6c..7f21c85d54e7aeb689836d6f25d7c27abe3a4764 100644 (file)
@@ -1,6 +1,6 @@
 /* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
 
-   Copyright (C) 2007-2024 Free Software Foundation, Inc.
+   Copyright (C) 2007-2025 Free Software Foundation, Inc.
 
    This file is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as
@@ -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.  */