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 01ED2568F for ; Fri, 6 Mar 2015 09:28:16 +0100 (CET) Received: from [10.100.1.152] (unverified [10.100.1.152]) by ernst.netinsight.se (EMWAC SMTPRS 0.83) with SMTP id ; Fri, 06 Mar 2015 09:28:11 +0100 Message-ID: <54F9651B.7060603@netinsight.net> Date: Fri, 06 Mar 2015 09:28:11 +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: dev@dpdk.org References: <20150225142851.55406347@miho> <2601191342CEEE43887BDE71AB977258213F3012@irsmsx105.ger.corp.intel.com> <54F41765.1050403@netinsight.net> In-Reply-To: <54F41765.1050403@netinsight.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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: Fri, 06 Mar 2015 08:28:17 -0000 Ping? Konstantins simpler patch is fine for me, but at least one of these two would be very nice to have so that modern C++ code can use DPDK. // Simon On 2015-03-02 08:55, Simon Kågström wrote: > 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 >