Re: [PATCH] fopen-gnu: do not define __need_FILE.

2020-08-03 Thread Bruno Haible
Harald van Dijk wrote: > __need_FILE is only used here to ensure the system's is > included, not to limit what defines. Use gnulib's > _GL_ALREADY_INCLUDING_STDIO_H for that, which does not conflict with > libc uses of __need_FILE. > > This matches what was already done in 2016 for freopen.c. T

[PATCH] fopen-gnu: do not define __need_FILE.

2020-08-03 Thread Harald van Dijk
__need_FILE is only used here to ensure the system's is included, not to limit what defines. Use gnulib's _GL_ALREADY_INCLUDING_STDIO_H for that, which does not conflict with libc uses of __need_FILE. This matches what was already done in 2016 for freopen.c. --- lib/fopen.c | 4 ++-- 1 file ch