autoconf
[Top][All Lists]
Advanced

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

Re: reasons for having no inclusion guards in config.h


From: Carsten Heinrici
Subject: Re: reasons for having no inclusion guards in config.h
Date: Mon, 8 Mar 2010 00:38:31 +0100

>> but: if there is this golden rule to always have them included first,
>> there should be no harm if they would include inclusion guards.
>>
>> what am I missing here?
>
> There may be several config.h files, each of which has somewhat different
> content.  Bing!

How do you include several config.h files?
In general, a C file starts with

#if defined(HAVE_CONFIG_H)
#  include "config.h"
#endif

This would never include more than one, I think.

Carsten




reply via email to

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