From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?windows-1252?Q?Simon_K=E5gstr=F6m?= Subject: Re: [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code Date: Mon, 02 Mar 2015 08:55:17 +0100 Message-ID: <54F41765.1050403@netinsight.net> References: <20150225142851.55406347@miho> <2601191342CEEE43887BDE71AB977258213F3012@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: "Ananyev, Konstantin" , "dev-VfR2kkLFssw@public.gmane.org" Return-path: In-Reply-To: <2601191342CEEE43887BDE71AB977258213F3012-pww93C2UFcwu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On 2015-02-27 17:24, Ananyev, Konstantin wrote: > Actually, I wonder wouldn't something like the one below be sufficient? > > diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/ > index 8ac940c..1867692 100644 > --- a/lib/librte_eal/common/include/rte_common.h > +++ b/lib/librte_eal/common/include/rte_common.h > @@ -51,6 +51,15 @@ extern "C" { > #include > #include > > +#ifndef typeof > +#define typeof __typeof__ > +#endif > + > +#ifndef asm > +#define asm __asm__ > +#endif Yes, I've tested, and this works with g++ as well. // Simon