Commit 7e45997
committed
drivers: add kernel_defines.h for ARRAY_SIZE
Fix compilation errors on native boards caused by missing ARRAY_SIZE
macro definition. The macro is defined in container.h which is included
by kernel_defines.h.
On ARM/Cortex-M platforms, kernel_defines.h is indirectly included via
cpu/cortexm_common/include/irq_arch.h, making ARRAY_SIZE available.
On native platform, no CPU header includes kernel_defines.h, requiring
explicit inclusion.
Error: "implicit declaration of function 'ARRAY_SIZE'"
Signed-off-by: Gilles DOFFE <[email protected]>1 parent 9e928e4 commit 7e45997
File tree
4 files changed
+4
-0
lines changed- drivers
- bmx280/include
- saul/init_devs
- sht2x/include
- tests/drivers/si1133
4 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments