eal: fix C++ app build
authorJoongi Kim <joongi@an.kaist.ac.kr>
Fri, 3 Jul 2015 12:51:03 +0000 (21:51 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 17 Aug 2015 15:50:22 +0000 (17:50 +0200)
commit621389bbbe0860d41538aeac893b6d74e714530c
tree72e94f10313072fe66ef91449c43eeb4e4adfd0f
parentec10f96bd30840c83123198a54a3733f154f5f34
eal: fix C++ app build

 * Forward declaration of enum in C++ requires explicit underlying
   type definitions.

 * This fixes the issue at:
   http://dpdk.org/ml/archives/dev/2015-April/017065.html

include/generic/rte_cpuflags.h:50:6:
error: use of enum ‘rte_cpu_flag_t’ without previous declaration
 enum rte_cpu_flag_t;

include/generic/rte_cpuflags.h:55:6:
error: use of enum ‘cpu_register_t’ without previous declaration
 enum cpu_register_t;

Signed-off-by: Joongi Kim <joongi@an.kaist.ac.kr>
[Thomas: fix extended to ppc and tile]
lib/librte_eal/common/include/arch/ppc_64/rte_cpuflags.h
lib/librte_eal/common/include/arch/tile/rte_cpuflags.h
lib/librte_eal/common/include/arch/x86/rte_cpuflags.h
lib/librte_eal/common/include/generic/rte_cpuflags.h