DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Ananyev, Konstantin" <konstantin.ananyev@intel.com>
To: "Simon Kågström" <simon.kagstrom@netinsight.net>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code
Date: Fri, 6 Mar 2015 10:30:50 +0000	[thread overview]
Message-ID: <2601191342CEEE43887BDE71AB977258213F44D4@irsmsx105.ger.corp.intel.com> (raw)
In-Reply-To: <54F9651B.7060603@netinsight.net>


Hi Simon,

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Simon Kågström
> Sent: Friday, March 06, 2015 8:28 AM
> To: dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code
> 
> 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

Can you do v2 as suggested, or do you want me to do it?
Thanks
Konstantin

> 
> 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 <errno.h>
> >>  #include <limits.h>
> >>
> >> +#ifndef typeof
> >> +#define typeof __typeof__
> >> +#endif
> >> +
> >> +#ifndef asm
> >> +#define asm __asm__
> >> +#endif
> >
> > Yes, I've tested, and this works with g++ as well.
> >
> > // Simon
> >

  reply	other threads:[~2015-03-06 10:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 13:28 Simon Kagstrom
2015-02-26 11:14 ` Thomas Monjalon
2015-02-26 11:24   ` Simon Kågström
2015-02-26 16:02   ` Mcnamara, John
2015-02-27 16:24 ` Ananyev, Konstantin
2015-03-02  7:55   ` Simon Kågström
2015-03-06  8:28     ` Simon Kågström
2015-03-06 10:30       ` Ananyev, Konstantin [this message]
2015-03-06 13:42         ` Simon Kågström
2015-03-06 15:59 ` [dpdk-dev] [PATCHv2] " Konstantin Ananyev
2015-03-09 16:38   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2601191342CEEE43887BDE71AB977258213F44D4@irsmsx105.ger.corp.intel.com \
    --to=konstantin.ananyev@intel.com \
    --cc=dev@dpdk.org \
    --cc=simon.kagstrom@netinsight.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).