[dpdk-dev] [PATCH v2 1/3] eal: fix keep alive header for C++

2016-02-16 Thread Remy Horton
Suspect this will introduce an extra indirection and call/return into the generated code, but can't think of any alternative that doesn't potentially break source compatibility.. On 16/02/2016 07:14, Thomas Monjalon wrote: > When built in a C++ application, the keepalive include fails: > >

[dpdk-dev] [PATCH v2 1/3] eal: fix keep alive header for C++

2016-02-16 Thread Thomas Monjalon
When built in a C++ application, the keepalive include fails: rte_keepalive.h:142:41: error: ?ALIVE? was not declared in this scope keepcfg->state_flags[rte_lcore_id()] = ALIVE; ^ C++ requires to use a scope operator to access an enum inside a struct.