1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/shell: fix build when SHELL_NO_ECHO is defined

When SHELL_NO_ECHO was defined and not SHELL_NO_PROMPT build was broken
because _putchar was not defined.
This define _putchar when one of SHELL_NO_PROMPT or SHELL_NO_ECHO is not
defined.
This commit is contained in:
Vincent Dupont 2017-05-04 15:49:22 +02:00
parent 7364192241
commit 669a6922f3

View File

@ -32,7 +32,7 @@
#include "shell.h"
#include "shell_commands.h"
#ifndef SHELL_NO_ECHO
#if !defined(SHELL_NO_ECHO) || !defined(SHELL_NO_PROMPT)
#ifdef MODULE_NEWLIB
/* use local copy of putchar, as it seems to be inlined,
* enlarging code by 50% */