Skip to content

Commit a28aa01

Browse files
gmarullcfriedt
authored andcommitted
sys: time_units: add missing include
The header can't be fully used in standalone mode: toolchain.h has to be included first, otherwise the ALWAYS_INLINE attribute is not defined. Headers that can be directly included and are not self-contained should be considered a bad practice. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 677a374 commit a28aa01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/sys/time_units.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#ifndef ZEPHYR_INCLUDE_TIME_UNITS_H_
88
#define ZEPHYR_INCLUDE_TIME_UNITS_H_
99

10+
#include <sys/util.h>
11+
#include <toolchain.h>
12+
1013
#ifdef __cplusplus
1114
extern "C" {
1215
#endif

0 commit comments

Comments
 (0)