Eli Zaretskii wrote:
I'm not sure what would be the best way of avoiding these errors
The usual method is to alter the gnulib .h file so that it merely include_next's
the system .h file when it detects that its partial inclusion is desired.
Something like this:
#ifdef __need_FILE
# @INCLUDE_NEXT@ @NEXT_STDIO_H@
#elif !defined _GL_STDIO_H
# @INCLUDE_NEXT@ @NEXT_STDIO_H@
# define _GL_STDIO_H
/* our own fixups */
#endif
It often gets more complicated than this (see lib/stdio.in.h), but that's the
basic idea.
It would be nicer if MinGW didn't have the problem in question. They could do
that by altering their include-file practices.