From: Ian Campbell Subject: Re: [PATCH 03/10] libxl: move a lot more includes into libxl_internal.h Date: Fri, 13 Jan 2012 13:39:18 +0000 Message-ID: <1326461958.17210.350.camel@zakaz.uk.xensource.com> References: <1325882107-5794-1-git-send-email-ian.jackson@eu.citrix.com> <1325882107-5794-4-git-send-email-ian.jackson@eu.citrix.com> <1326451270.17210.310.camel@zakaz.uk.xensource.com> <20240.13232.920698.590180@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20240.13232.920698.590180@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-01-13 at 13:37 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [PATCH 03/10] libxl: move a lot more includes into libxl_internal.h"): > > Could we put this first in libxl_internal.h and apply that constraint to > > that header instead? > > In theory, yes. But in practice people very much seem to like to add > new system headers to individual files. And if you forget and add > them in the wrong place it can lead to subtle portability bugs which > you might not notice. > > So I think this is a more obvious way to do it, even though it's an > extra #include line in each file. Sure, that fine. I suppose using -include (or whatever its real name is) on the compiler command line is too skanky? Ian.