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 <[email protected]> --- 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 fcf125a908..2e3678d966 100644 --- a/lib/pmu/rte_pmu.h +++ b/lib/pmu/rte_pmu.h @@ -34,13 +34,10 @@ #include <rte_debug.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

