|
From: | John Calcote |
Subject: | Re: reasons for having no inclusion guards in config.h |
Date: | Sun, 07 Mar 2010 13:28:56 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
On 3/7/2010 11:53 AM, Bob Friesenhahn wrote:
On Sun, 7 Mar 2010, Carsten Heinrici wrote: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!
So what would be wrong with generating an include guard tag based on the name of the project?
For instance, -------- #ifndef GRAPHICSMAGICK_CONFIG_H #define GRAPHICSMAGICK_CONFIG_H ... #endif -------- John
[Prev in Thread] | Current Thread | [Next in Thread] |