bug-gnulib
[Top][All Lists]
Advanced

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

Re: bug#8881: config.h double inclusion


From: Bruce Korb
Subject: Re: bug#8881: config.h double inclusion
Date: Sat, 18 Jun 2011 09:43:53 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10

On 06/16/11 14:31, Jack Kelly wrote:
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.

It might be better to have an autoconf macro, e.g.:
  AC_GUARD_CONFIG_H([MYPFX])

that adds multi-inclusion guards and prefixes the generated #define names.
I'm redirecting to that list.



reply via email to

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