Commit 2512698
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>1 parent c7e98ee commit 2512698
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments