bug-gnulib
[Top][All Lists]
Advanced

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

Re: Wrapping #include <config.h> around #ifdef HAVE_CONFIG_H


From: Jim Meyering
Subject: Re: Wrapping #include <config.h> around #ifdef HAVE_CONFIG_H
Date: Fri, 09 Feb 2007 16:20:18 +0100

Albert Chin <address@hidden> wrote:
> Any reason all uses of #include <config.h> aren't wrapped with #ifdef
> HAVE_CONFIG_H like so:
>   #ifdef HAVE_CONFIG_H
>   # include <config.h>
>   #endif
>
> Some .c files have the above and some don't. Seems to make sense for
> all to have the form above.

The vast majority include config.h unconditionally
since it is so often required.

The few that remain may be there because the
file is sync'd from glibc.
In any other case, the #ifdef should be removed.




reply via email to

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