Merge pull request #5474 from aabadie/iotlab_no_shell
sys/shell: fix build issue when deactivating shell echo (iotlab)
This commit is contained in:
commit
cc0e8d5b36
@ -32,6 +32,7 @@
|
|||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
#include "shell_commands.h"
|
#include "shell_commands.h"
|
||||||
|
|
||||||
|
#ifndef SHELL_NO_ECHO
|
||||||
#ifdef MODULE_NEWLIB
|
#ifdef MODULE_NEWLIB
|
||||||
/* use local copy of putchar, as it seems to be inlined,
|
/* use local copy of putchar, as it seems to be inlined,
|
||||||
* enlarging code by 50% */
|
* enlarging code by 50% */
|
||||||
@ -41,6 +42,7 @@ static void _putchar(int c) {
|
|||||||
#else
|
#else
|
||||||
#define _putchar putchar
|
#define _putchar putchar
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
static shell_command_handler_t find_handler(const shell_command_t *command_list, char *command)
|
static shell_command_handler_t find_handler(const shell_command_t *command_list, char *command)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user