Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
numbers.sh: do not (re)define ROUND_DOWN() if __ZEPHYR__
Move the ROUND_DOWN() definition to the nearby #ifndef __ZEPHYR__ block. The previous `#ifndef ROUND_DOWN` logic depends on the #include order, so it fails sometimes. Fixes commit a6f8dae ("kpb: add micselection function") Fixes XCC compilation failure with ``` ./scripts/xtensa-build-zephyr.py mtl --cmake-args='-DEXTRA_CFLAGS=-Werror' - In file included from sof/src/audio/src/src_hifi4.c:22: zephyr/include/zephyr/sys/util.h:238:9: warning: 'ROUND_DOWN' macro redefined [-Wmacro-redefined] ^ sof/zephyr/../src/include/sof/math/numbers.h:33:9: note: previous definition is here ``` Signed-off-by: Marc Herbert <marc.herbert@intel.com>
- Loading branch information