bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib *.h files require config,h


From: Simon Josefsson
Subject: Re: gnulib *.h files require config,h
Date: Tue, 03 Jul 2007 11:02:26 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.95 (gnu/linux)

Bruno Haible <address@hidden> writes:

> The proposal is therefore to make gnulib's replacement headers independent
> of config.h, as far as possible:
>   - Use some @restrict@ instead of using restrict that is defined by config.h,
>   - For all types defined by AC_TYPE_MODE_T, AC_TYPE_OFF_T, AC_TYPE_PID_T, 
> etc.
>     copy the definition of that type into the header file that needs it,
>     rather than assuming that config.h defined it.
>
> Opinions?

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?

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

(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.  But I don't know how to solve that problem.  Adding logic
into the header file can work, but I suppose there are some thing a CPP
test can't test for.)

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]