[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
- Re: reasons for having no inclusion guards in config.h, (continued)
- Re: reasons for having no inclusion guards in config.h, John Calcote, 2010/03/07
- Re: reasons for having no inclusion guards in config.h, Bob Friesenhahn, 2010/03/07
- Re: reasons for having no inclusion guards in config.h, Tim Rice, 2010/03/07
- Re: reasons for having no inclusion guards in config.h, Harlan Stenn, 2010/03/07
- Re: reasons for having no inclusion guards in config.h, Tim Rice, 2010/03/07
- Re: reasons for having no inclusion guards in config.h, John Calcote, 2010/03/07
- Re: reasons for having no inclusion guards in config.h, Bob Friesenhahn, 2010/03/07
- Re: reasons for having no inclusion guards in config.h, Ralf Wildenhues, 2010/03/08
- Re: reasons for having no inclusion guards in config.h, Steffen Dettmer, 2010/03/08
- Re: reasons for having no inclusion guards in config.h, Bob Friesenhahn, 2010/03/08
- Re: reasons for having no inclusion guards in config.h,
Carsten Heinrici <=
- Re: reasons for having no inclusion guards in config.h, John Calcote, 2010/03/07
- Re: reasons for having no inclusion guards in config.h, Steffen Dettmer, 2010/03/08