RTE_LIB_PMU is defined by build system automatically if DPDK is build for Linux. Otherwise it's missing.
That said all cases where conditional compilation is required can be handled without introducing other macros. Signed-off-by: Tomasz Duszynski <tduszyn...@marvell.com> --- lib/pmu/rte_pmu.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/pmu/rte_pmu.h b/lib/pmu/rte_pmu.h index 84a5d522d1..e997f62334 100644 --- a/lib/pmu/rte_pmu.h +++ b/lib/pmu/rte_pmu.h @@ -33,13 +33,10 @@ #include <rte_compat.h> #include <rte_lcore.h> -#define RTE_PMU_SUPPORTED #if defined(RTE_ARCH_ARM64) #include "rte_pmu_pmc_arm64.h" #elif defined(RTE_ARCH_X86_64) #include "rte_pmu_pmc_x86_64.h" -#else -#undef RTE_PMU_SUPPORTED #endif #ifdef __cplusplus -- 2.34.1