diff --git a/src/include/sof/math/numbers.h b/src/include/sof/math/numbers.h index 78be3239fd76..5c527b0b8382 100644 --- a/src/include/sof/math/numbers.h +++ b/src/include/sof/math/numbers.h @@ -12,20 +12,13 @@ #include -/* Zephyr defines this - remove local copy once Zephyr integration complete */ -#ifdef MIN -#undef MIN -#endif +#ifndef __ZEPHYR__ /* Unsafe and portable macros for consistency with Zephyr. * See SEI CERT-C PRE31-C */ #define MIN(a, b) ((a) < (b) ? (a) : (b)) - -/* Zephyr defines this - remove local copy once Zephyr integration complete */ -#ifdef MAX -#undef MAX -#endif #define MAX(a, b) ((a) < (b) ? (b) : (a)) +#endif /* ! __ZEPHYR__ */ #define ABS(a) ({ \ typeof(a) __a = (a); \