Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] Re: (PR#11248) connection.h and spaceship.h should require
Home

[Freeciv-Dev] Re: (PR#11248) connection.h and spaceship.h should require

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11248) connection.h and spaceship.h should require config.h
From: Frédéric Brière <fbriere@xxxxxxxxxxx>
Date: Mon, 29 Nov 2004 14:07:18 -0500

On Mon, Nov 29, 2004 at 07:58:20AM -0800, Jason Short wrote:
> The rule is that every .c file should include config.h *before* 
> including any other .h files.

Out of curiosity, why can't the .h files include it themselves, instead
of printing an error message?  I'm sure there's a good reason, but I
can't imagine what it is.

> Don't include <config.h> in your .h files as that can hide errors.  But 

Unfortunately, I have no other choice, as some of my .cpp files are
auto-generated.


-- 
             Frédéric Brière    <*>    fbriere@xxxxxxxxxxx

 =>  <fbriere@xxxxxxxxxx> IS NO MORE:  <http://www.abacomsucks.com>  <=



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