diff --git a/src/include/sof/common.h b/src/include/sof/common.h index 6a875f5a90f7..343cda56c741 100644 --- a/src/include/sof/common.h +++ b/src/include/sof/common.h @@ -14,8 +14,14 @@ /* callers must check/use the return value */ #define __must_check __attribute__((warn_unused_result)) +#ifdef __ZEPHYR__ +#include +#endif + /* Align the number to the nearest alignment value */ +#ifndef IS_ALIGNED #define IS_ALIGNED(size, alignment) ((size) % (alignment) == 0) +#endif /* Treat zero as a special case because it wraps around */ #define is_power_of_2(x) ((x) && !((x) & ((x) - 1)))