diff --git a/tools/fuzzer/fuzzer.h b/tools/fuzzer/fuzzer.h index 4d6efb804..d1149d127 100644 --- a/tools/fuzzer/fuzzer.h +++ b/tools/fuzzer/fuzzer.h @@ -30,7 +30,9 @@ #define IRQ_WAKE_THREAD 1 #define IRQ_HANDLED 2 +#ifndef ARRAY_SIZE #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) +#endif struct fuzz; struct fuzz_platform; diff --git a/tools/fuzzer/topology.c b/tools/fuzzer/topology.c index 7b4b85fd2..485d02ebc 100644 --- a/tools/fuzzer/topology.c +++ b/tools/fuzzer/topology.c @@ -13,12 +13,13 @@ #include #include #include -#include "../fuzzer/fuzzer.h" #include #include #include #include +#include "../fuzzer/fuzzer.h" + const struct sof_dai_types sof_dais[] = { {"SSP", SOF_DAI_INTEL_SSP}, {"HDA", SOF_DAI_INTEL_HDA},