[Top][All Lists]

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

Re: multiple inclusion guard for config.h

From: Ed Hartnett
Subject: Re: multiple inclusion guard for config.h
Date: Sat, 20 Jan 2007 18:49:34 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

"David Byron" <address@hidden> writes:

> On Saturday, January 20, 2007 @ 4:02p, Bob Friesenhahn wrote:
>> > Anyway, I could use an education about why there isn't a
>> > guard against multiple inclusion built in to autoheader, as
>> > well as a way to add one myself.  AH_TOP puts the first part
>> > where I want, but I've got multiple AH_BOTTOM calls and I
>> > can't see a way to force the final #endif to really go last
>> > in the file.
>> "config.h" may be provided from multiple packages at once
>> and all included instances may be required.  The user that
>> includes it needs to manage proper use.
> Any suggestions how?  I've seen people write scripts to modify/rename
> config.h but that seems overkill in this case.
> Thanks much.
> -DB

How about something like:

#include <../my/config.h>

Ed Hartnett  -- address@hidden

reply via email to

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