]> Savannah Git Hosting - gnulib.git/commitdiff
stddef: Fix <stddef.h> behaviour on Cygwin (regression 2024-04-27).
authorBruno Haible <bruno@clisp.org>
Wed, 1 May 2024 21:10:51 +0000 (23:10 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 1 May 2024 21:10:51 +0000 (23:10 +0200)
Reported by Markus Mützel <markus.muetzel@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00522.html>.

* lib/stddef.in.h: Don't test _@GUARD_PREFIX@_STDDEF_H. Fix comments.

ChangeLog
lib/stddef.in.h

index 8681066eeeb25bfb353f8ef461e1fdbf47f757bf..21e52879f6d1166cc91d15640b41281d171ef4c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-05-01  Bruno Haible  <bruno@clisp.org>
+
+       stddef: Fix <stddef.h> behaviour on Cygwin (regression 2024-04-27).
+       Reported by Markus Mützel <markus.muetzel@gmx.de> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00522.html>.
+       * lib/stddef.in.h: Don't test _@GUARD_PREFIX@_STDDEF_H. Fix comments.
+
 2024-05-01  Bruno Haible  <bruno@clisp.org>
 
        doc: Reference a gcc bug.
index fa249259cdce52f874da73c934cf9cd2c2ccfd0c..ac81257b5cfff513c52c5b971d7fe92e9546bdf1 100644 (file)
 #endif
 @PRAGMA_COLUMNS@
 
-#if (!defined _@GUARD_PREFIX@_STDDEF_H \
-     && (defined __need_wchar_t || defined __need_size_t \
-         || defined __need_ptrdiff_t || defined __need_NULL \
-         || defined __need_wint_t))
+#if (defined __need_wchar_t || defined __need_size_t \
+     || defined __need_ptrdiff_t || defined __need_NULL \
+     || defined __need_wint_t)
 /* Special invocation convention inside gcc header files.  In
    particular, <stddef.h> in some ancient versions of GCC blindly
    redefined NULL when __need_wint_t was defined, even though wint_t
@@ -38,7 +37,7 @@
    (FIXME: It's not clear what GCC versions those were - perhaps so
    ancient that we can stop worrying about this?)
    Although glibc 2.26 (2017) and later do not use __need_wint_t,
-   for portability to older Glibc + GCC,
+   for portability to macOS, Cygwin, Haiku, and older Glibc + GCC,
    remember if special invocation has ever been used to obtain wint_t,
    in which case we need to clean up NULL yet again.  */