bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Re: automatic prototypes


From: Bruno Haible
Subject: Re: [bug-gnulib] Re: automatic prototypes
Date: Sat, 18 Dec 2004 19:36:37 +0100
User-agent: KMail/1.5

Simon Josefsson wrote:
> It seems safe to assume that if a
> gnulib module A depend on another module B, the AH_BOTTOM from module
> B should come before the one for A.

I don't see a relation between the order in the config.h file and the
module dependencies.

For example, according to your approach, using the 'gettimeofday' module
would put a  #include <sys/time.h>  into config.h.
And using the 'gettime' module put a  #define _GNU_SOURCE 1  into config.h.
'gettime' depends on 'gettimeofday' but not vice versa. So by tying the
the config.h ordering to gnulib module dependencies, the
#include <sys/time.h>  would come before the  #define _GNU_SOURCE 1.
Which is wrong.

Bruno





reply via email to

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