[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8881: config.h double inclusion
From: |
Jack Kelly |
Subject: |
bug#8881: config.h double inclusion |
Date: |
Fri, 17 Jun 2011 07:31:55 +1000 |
On Fri, Jun 17, 2011 at 6:29 AM, Paul Eggert <address@hidden> wrote:
> On 06/16/11 10:36, Alfred M. Szmidt wrote:
>> I'm thinking that maybe <config.h> should be generated with a double
>> inclusion guard
>
> But the general rule is that <config.h> must always be included first, no?
> So there shouldn't ever be a possibility of including it twice.
>
> It might be better to have config.h do something like this:
>
> #ifdef CONFIG_H
> # error "config.h included twice"
> #endif
> #define CONFIG_H
Warning: Quite a few misbehaving packages actually install their config.h.
-- Jack