diff options
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/stdio.h b/include/stdio.h index 7b2a42b817..46e277889d 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -71,23 +71,32 @@ static inline int ctrlc (void) #if (!defined(__PBL__) && !defined(CONFIG_CONSOLE_NONE)) || \ (defined(__PBL__) && defined(CONFIG_PBL_CONSOLE)) int printf(const char *fmt, ...) __attribute__ ((format(__printf__, 1, 2))); + +static inline int puts(const char *s) +{ + return console_puts(CONSOLE_STDOUT, s); +} + +static inline void putchar(char c) +{ + console_putc(CONSOLE_STDOUT, c); +} #else static int printf(const char *fmt, ...) __attribute__ ((format(__printf__, 1, 2))); static inline int printf(const char *fmt, ...) { return 0; } -#endif - static inline int puts(const char *s) { - return console_puts(CONSOLE_STDOUT, s); + return 0; } static inline void putchar(char c) { - console_putc(CONSOLE_STDOUT, c); + return; } +#endif /* * FILE based functions |