Simon Josefsson wrote:
> > First of all, would this be fixed by moving the define into lib/time.in.h?
> 
> If the generated time.h file is placed in gl/tests/, then I think it
> would work.  But if it ends up in gl/ the src/*.c files will #include
> it, and there will be the same problem again.

Yes, exactly. The problem is that there is only one GNULIB_XYZ indicator
macro for each XYZ module.

> I'm not sure gnulib-tool
> supports time.h in both gl/ and gl/tests with different definitions?

If the compiler supports #include_next, it will work. If not, it will work
if the second one is a superset of the first one (which is the case for
you, if I understand it right).

Bruno



Reply via email to