+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.
#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
(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. */