[PATCH] Remove __SIZE_TYPE__ usage (BZ 33969)
Joseph Myers
josmyers@redhat.com
Thu Mar 12 22:58:38 GMT 2026
On Thu, 12 Mar 2026, Adhemerval Zanella Netto wrote:
> > The question is: which installed headers use this fortify support, and do
> > all such headers define size_t unconditionally (or, failing that, for all
> > conditions under which the fortify support is used)? For example,
> > <string.h> defines size_t, so there is certainly no problem for any use of
> > these fortify macros from <string.h>.
> >
>
> Right, my assumption is since fortify is a GNU extension we could define
> that size_t would be defined (as I did for poll2.h). But it seems that
> _FORTIFY_SOURCE is not really tied to _GNU_SOURCE, so I think I will need
Indeed, _FORTIFY_SOURCE is orthogonal to the various standards. To the
extent that check-installed-headers.sh checks combinations of language,
library and fortify modes, that may be evidence that the headers in
question do in fact define size_t, but the affected headers should be
enumerated to confirm this properly.
--
Joseph S. Myers
josmyers@redhat.com
More information about the Libc-alpha
mailing list