[PATCH] Remove __SIZE_TYPE__ usage (BZ 33969)

Andreas Schwab schwab@suse.de
Wed Mar 11 09:14:01 GMT 2026


On Mär 10 2026, Adhemerval Zanella wrote:

> diff --git a/posix/glob.h b/posix/glob.h
> index 4c824eb0d3..efedf7ab92 100644
> --- a/posix/glob.h
> +++ b/posix/glob.h
> @@ -23,11 +23,10 @@
>  __BEGIN_DECLS
>  
>  /* We need `size_t' for the following definitions.  */
> +#define __need_size_t
> +#include <stddef.h>
>  #ifndef __size_t
> -typedef __SIZE_TYPE__ __size_t;
> -# if defined __USE_XOPEN || defined __USE_XOPEN2K8
> -typedef __SIZE_TYPE__ size_t;
> -# endif
> +typedef size_t __size_t;
>  #else
>  /* The GNU CC stddef.h version defines __size_t as empty.  We need a real
>     definition.  */

I don't think the definition of __size_t is still needed here.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list