shell: Fix undefined macro warnings
Fix undefined macro warning if CONFIG_SHELL* options are not selected Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
parent
6cd70a5f85
commit
bdb0284b82
3 changed files with 3 additions and 3 deletions
|
@ -107,7 +107,7 @@ static inline const char *TC_RESULT_TO_STR(int result)
|
|||
TC_END_POST(result); \
|
||||
} while (0)
|
||||
|
||||
#if CONFIG_SHELL
|
||||
#if defined(CONFIG_SHELL)
|
||||
#define TC_CMD_DEFINE(name) \
|
||||
static int cmd_##name(const struct shell *shell, size_t argc, \
|
||||
char **argv) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue