zephyr: Avoid duplicate CLAMP() macros
This defined in Zephyr's sys/util.h so we should not define it again
when building for Zephyr. Add an #ifdef to fix this.
BRANCH=none
TEST=build and see there is no duplicate warning for CLAMP()
@@ -54,7 +54,9 @@ extern "C" {
* @return `v` if it is already between `min`/`max`, `min` if `v` was smaller
* than `min`, `max` if `v` was bigger than `max`.
*/
+#ifndef CONFIG_ZEPHYR
#define CLAMP(v, min, max) MIN(max, MAX(v, min))
+#endif
/*
* Convert a pointer to a base struct into a pointer to the struct that
