[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#8881: config.h double inclusion
From: |
Alfred M. Szmidt |
Subject: |
Re: bug#8881: config.h double inclusion |
Date: |
Thu, 16 Jun 2011 17:55:09 -0400 |
>> 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.
One should send bug reports for those cases, since it is just broken.