From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ernst.netinsight.se (ernst.netinsight.se [194.16.221.21]) by dpdk.org (Postfix) with SMTP id 5BCE1A6A for ; Mon, 2 Mar 2015 08:55:27 +0100 (CET) Received: from [10.100.1.152] (unverified [10.100.1.152]) by ernst.netinsight.se (EMWAC SMTPRS 0.83) with SMTP id ; Mon, 02 Mar 2015 08:55:19 +0100 Message-ID: <54F41765.1050403@netinsight.net> Date: Mon, 02 Mar 2015 08:55:17 +0100 From: =?windows-1252?Q?Simon_K=E5gstr=F6m?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "Ananyev, Konstantin" , "dev@dpdk.org" References: <20150225142851.55406347@miho> <2601191342CEEE43887BDE71AB977258213F3012@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB977258213F3012@irsmsx105.ger.corp.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 07:55:27 -0000 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