On Tue, Jun 11, 2024 at 10:06:49AM +0200, Richard Biener wrote: > > approrpiate #define _POSIX_C_SOURCE or #define _XOPE_SOURCE befor the > > include in case somebody builds with -std=c99? > > Oh, and the manpage says that <stdio.h> also defines ssize_t which > is a bit odd since we already include that ...
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html shows that indeed POSIX 2018 stdio.h should provide ssize_t, but e.g. POSIX 2004 stdio.h doesn't have to: https://pubs.opengroup.org/onlinepubs/007904875/basedefs/stdio.h.html Jakub