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 <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 >