eal: fix C++11 compilation
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 6 Mar 2015 15:59:47 +0000 (15:59 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 9 Mar 2015 16:38:41 +0000 (17:38 +0100)
commit2a0911ec8bb64b09c9697a63cf3ea96d78e12e59
treeb73cd2c389b290d94101ad0a42bfcf20bac7432e
parentf2552cd5ef313f3d80d0d8e725d9e2b1b7d938ca
eal: fix C++11 compilation

When compiling C++11-code or above (--std=c++11), the build fails with
lots of

  rte_eth_ctrl.h:517:3: note: in expansion of macro RTE_ALIGN
    (RTE_ALIGN(RTE_ETH_FLOW_MAX, UINT32_BIT)/UINT32_BIT)
    ^

When reading the GCC info pages, I get the feeling that __typeof__ is
a better choice, and that indeed works when including the headers in
C++ files (--std=c++11).

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/common/include/rte_common.h