[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get a literal #undef into config.h
From: |
Stepan Kasal |
Subject: |
Re: How to get a literal #undef into config.h |
Date: |
Wed, 26 Oct 2005 08:32:08 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Tue, Oct 25, 2005 at 12:06:30PM -0700, Bruce Korb wrote:
> OTOH, if your project flat won't work on any platform without config.h:
>
> #ifndef HAVE_CONFIG_H
> #define HAVE_CONFIG_H 1
> #endif
> #include "config.h"
no need for the define, just #include "config.h". Nothing checks for
HAVE_CONFIG_H after that point.
But the project cannot use any 3rd party sources which rely on HAVE_CONFIG_H,
like the source files distributed by gnulib, or ansi2knr.c .
Have a nice day,
Stepan