From: Tim Deegan Subject: Re: [PATCH] xen: Minor modifications to platform.h to make it C++-friendly Date: Mon, 23 Feb 2015 12:09:29 +0100 Message-ID: <20150223110929.GA69348@deinos.phlegethon.org> References: <1424684065-5971-1-git-send-email-rcojocaru@bitdefender.com> <54EB0C0F0200007800062651@mail.emea.novell.com> <54EB017E.5000509@bitdefender.com> <54EB14D902000078000626B5@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <54EB14D902000078000626B5@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: keir@xen.org, ian.jackson@eu.citrix.com, ian.campbell@citrix.com, Razvan Cojocaru , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 10:54 +0000 on 23 Feb (1424685241), Jan Beulich wrote: > ... this should be moved out to file scope too, both for consistency > and to avoid an eventual further adjustment going forward. Otoh > I'm not convinced we need the headers to be C++ ready (nor am > I convinced that there aren't any other obstacles preventing their > unmodified use in C++). Co-maintainers, what do you think? In general I'm against making C code uglier to keep C++ compilers happy (e.g. ISTR vetoing the idea of putting 'extern C' runes in our header files a while back). And we certainly don't _support_ the header files as C++. OTOH, I think that just defining struct xenpf_efi_guid and struct xenpf_efi_time at file scope would be fine here -- if anything it's nicer to have these reused structs defined before first use. And if it happens to solve a problem for C++, too, that's great. :) Cheers, Tim.