Complete.Org: Mailing Lists: Archives: freeciv-dev: November 1998:
Re: [Freeciv-Dev] config.h patch
Home

Re: [Freeciv-Dev] config.h patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: permath@xxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: Re: [Freeciv-Dev] config.h patch
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Fri, 13 Nov 1998 11:25:20 +1100

Per Mathisen wrote:
> 
> Is there interest in moving freeciv autoconf to config.h instead of using 
> dozens of -D compile time messages?

I think it is probably a good idea.

Presumably it also allows us the check whether configure is being 
used (as opposed to the unsupported Imakefile and Makefile.noimake)
eg:
 #if !defined(HAVE_CONFIG_H) || defined(HAVE_STRERROR)
   /* use real strerror */
 #else
   /* workaround */
 #endif
Or is that a bad approach in general and/or in this case?

One question: in Markus Linnala's he used:
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
while you just use
 #include <config.h>

Was that deliberate on you part?  The former seems a good idea to me.

-- David


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