Simon,

> Would this make it possible to install all of gnulib's replacement
> header files?  In other words, will this lead to them being completely
> standalone?

It will not make them completely standalone. There are still some flags
like _GNU_SOURCE, __EXTENSIONS__, _FILE_OFFSET_BITS, __STDC_LIMIT_MACROS,
which need to be defined before the first system header file is included.

> If the answer is yes, I think it would be potentially useful.
> Otherwise, I don't care either way, as long as it works.

It will work in more situations.

> (There is the problem if the host has multiple rather different
> compilers installed: then these generated header files may not work with
> all of them.

We don't address this problem. If we tried to, we would get back to
hard-to-maintain #if expressions; autoconf tests require much less porting
effort to new platforms. For a recent example of this lesson, see [1][2][3].

Bruno

[1] http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00111.html
[2] http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00260.html
[3] http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00157.html



Reply via email to