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:
Alberto Escolar Piedras 2019-07-24 16:18:41 +02:00 committed by Kumar Gala
commit bdb0284b82
3 changed files with 3 additions and 3 deletions

View file

@ -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) \