Re: [PATCH 1/2] stddef: work around GCC 14 stddef.h bugs

2024-05-01 Thread Bruno Haible
I wrote: > I would have preferred if you had committed each workaround in a separate > patch, because > - One of the two workarounds causes the major trouble on Cygwin, > reported by Markus Mützel, therefore I have to revert it. > - Also the fact that the documentation mentions one of the t

Re: [PATCH 1/2] stddef: work around GCC 14 stddef.h bugs

2024-05-01 Thread Paul Eggert
On 2024-05-01 15:32, Bruno Haible wrote: I tried another workaround, consisting of adding #undef __STDC_VERSION_STDDEF_H__ at the appropriate place, but then the Fedora 40 gcc gives a warning about this #undef. Since neither the warning about the redefinition nor the warning about the #undef c

Re: [PATCH 1/2] stddef: work around GCC 14 stddef.h bugs

2024-05-01 Thread Bruno Haible
Hi Paul, > * lib/stddef.in.h: Do nothing if _@GUARD_PREFIX@_STDDEF_H is > defined, as stddef.h has already been included. This works > around GCC bug 114870. I had to revert this, since it broke Cygwin. The workaround should be as platform specific as possible, since fiddling with the __need_wc

Re: [PATCH 1/2] stddef: work around GCC 14 stddef.h bugs

2024-05-01 Thread Bruno Haible
Hi Paul, > +2024-04-27 Paul Eggert > + > + stddef: work around GCC 14 stddef.h bugs > + * lib/stddef.in.h: Do nothing if _@GUARD_PREFIX@_STDDEF_H is > + defined, as stddef.h has already been included. This works > + around GCC bug 114870. > + (_GCC_NULLPTR_T): Define if nee

[PATCH 1/2] stddef: work around GCC 14 stddef.h bugs

2024-04-27 Thread Paul Eggert
* lib/stddef.in.h: Do nothing if _@GUARD_PREFIX@_STDDEF_H is defined, as stddef.h has already been included. This works around GCC bug 114870. (_GCC_NULLPTR_T): Define if needed to work around GCC bug 114869. * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS): * modules/stddef (stddef.h): Detect