diff options
Diffstat (limited to 'libc/stdio')
-rw-r--r-- | libc/stdio/fputwc.c | 2 | ||||
-rw-r--r-- | libc/stdio/putwchar.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/libc/stdio/fputwc.c b/libc/stdio/fputwc.c index 7f46f48b8..b699e9d4b 100644 --- a/libc/stdio/fputwc.c +++ b/libc/stdio/fputwc.c @@ -19,6 +19,7 @@ libc_hidden_def(fputwc_unlocked) strong_alias(fputwc_unlocked,putwc_unlocked) #ifndef __UCLIBC_HAS_THREADS__ strong_alias(fputwc_unlocked,fputwc) +libc_hidden_def(fputwc) strong_alias(fputwc_unlocked,putwc) #endif @@ -37,6 +38,7 @@ wint_t fputwc(wchar_t wc, register FILE *stream) return retval; } +libc_hidden_def(fputwc) strong_alias(fputwc,putwc) diff --git a/libc/stdio/putwchar.c b/libc/stdio/putwchar.c index 3fadb61db..96de6a285 100644 --- a/libc/stdio/putwchar.c +++ b/libc/stdio/putwchar.c @@ -9,7 +9,6 @@ #ifdef __DO_UNLOCKED - wint_t putwchar_unlocked(wchar_t wc) { return fputwc_unlocked(wc, stdout); @@ -21,11 +20,9 @@ strong_alias(putwchar_unlocked,putwchar) #elif defined __UCLIBC_HAS_THREADS__ -/* psm: should this be fputwc? */ - wint_t putwchar(wchar_t wc) { - return fputc(wc, stdout); + return fputwc(wc, stdout); } #endif |