Skip to content

Commit

Permalink
toolchain: use proper binary operation for #if directive
Browse files Browse the repository at this point in the history
"#if" directive expects usage of binary operations in "&&" format, not
"and". Change it to fix build failure.

Fixes:
e17af57 toolchain: do not use posix C code for asm language in gcc.h

Signed-off-by: Dmytro Firsov <[email protected]>
Acked-by: Volodymyr Babchuk <[email protected]>
  • Loading branch information
firscity committed Feb 2, 2024
1 parent e17af57 commit 4c65677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/toolchain/gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
#define FUNC_ALIAS(real_func, new_alias, return_type) \
return_type new_alias() ALIAS_OF(real_func)

#if defined(CONFIG_ARCH_POSIX) and !defined(_ASMLANGUAGE)
#if defined(CONFIG_ARCH_POSIX) && !defined(_ASMLANGUAGE)
#include <zephyr/arch/posix/posix_trace.h>

/*let's not segfault if this were to happen for some reason*/
Expand Down

0 comments on commit 4c65677

Please sign in to comment.