[dpdk-dev] [PATCH] ixgbe:Prevent redefinition of bool if compiling using c++

Ido Barnea (ibarnea) ibarnea at cisco.com
Mon Jul 18 16:12:18 CEST 2016


Actually, dozens of h files contain this code:
#ifdef __cplusplus
extern "C" {
#endif
Less common in drivers, but also exists.


In Trex, we do include ixgbe_type.h from c++ code because we do some register writes ourselves to support some functionality not exposed in the DPDK API.
We can continue making this change in our copy of the code only. Just trying to align our code with the official version as much as possible, and thought it might benefit others as well to make this c++ compatible. 
Apart from this small change, c++ compilation is supported.





On 18/07/2016, 4:54 PM, "Thomas Monjalon" <thomas.monjalon at 6wind.com> wrote:

>Hi,
>
>DPDK is a C code and do not support C++ compilation.
>Only the exposed headers have some C++ support requirements.
>
>>  drivers/net/ixgbe/base/ixgbe_osdep.h | 2 ++
>
>Patching this file for C++ will be probably rejected, sorry.
>
>I'm interested to understand what is your need?


More information about the dev mailing list