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: Fri, 06 Mar 2015 09:28:11 +0100 Message-ID: <54F9651B.7060603@netinsight.net> References: <20150225142851.55406347@miho> <2601191342CEEE43887BDE71AB977258213F3012@irsmsx105.ger.corp.intel.com> <54F41765.1050403@netinsight.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <54F41765.1050403-vI6UBbBVNY+JA8cjQkG2/g@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" 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=E5gstr=F6m 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_e= al/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 >=20 > Yes, I've tested, and this works with g++ as well. >=20 > // Simon >=20