Skip to content
Commit 25c0eac1 authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
Browse files

sys/util.h: Make IS_ENABLED work for linker scripts



Z_IS_ENABLED2 uses true and false, however when we preprocess the linker
scripts we invoke the compiler with `-x assembler-with-cpp` so
_ASMLANGUAGE ends up being defined and thus stdbool.h wouldn't convert
'true' and 'false' to '1' and '0'.

Move the include of stdbool.h outside the #ifndef _ASMLANGUAGE check so
that 'true' and 'false' get converted correctly.

Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent 9f9e4682
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment