diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-09-24 16:15:28 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-09-24 16:15:28 +0000 |
commit | dd4c03d796f73e008d93ade62655deb70aaaf34a (patch) | |
tree | 381f07ac566718afc00cde9a5470ad8bf16625e4 /libc/stdio/fputwc.c | |
parent | 0f82408c13d9e8be9dd022b0c21411fe86693f67 (diff) | |
download | uClibc-alpine-dd4c03d796f73e008d93ade62655deb70aaaf34a.tar.bz2 uClibc-alpine-dd4c03d796f73e008d93ade62655deb70aaaf34a.tar.xz |
Big sync with trunk.
Diffstat (limited to 'libc/stdio/fputwc.c')
-rw-r--r-- | libc/stdio/fputwc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/stdio/fputwc.c b/libc/stdio/fputwc.c index fc980dcef..ef7a6d627 100644 --- a/libc/stdio/fputwc.c +++ b/libc/stdio/fputwc.c @@ -9,6 +9,11 @@ #ifdef __DO_UNLOCKED +wint_t __fputwc_unlocked(wchar_t wc, FILE *stream) +{ + return _wstdio_fwrite(&wc, 1, stream) ? wc : WEOF; +} + weak_alias(__fputwc_unlocked,fputwc_unlocked); weak_alias(__fputwc_unlocked,putwc_unlocked); #ifndef __UCLIBC_HAS_THREADS__ @@ -16,15 +21,8 @@ weak_alias(__fputwc_unlocked,fputwc); weak_alias(__fputwc_unlocked,putwc); #endif -wint_t __fputwc_unlocked(wchar_t wc, FILE *stream) -{ - return _wstdio_fwrite(&wc, 1, stream) ? wc : WEOF; -} - #elif defined __UCLIBC_HAS_THREADS__ -weak_alias(fputwc,putwc); - wint_t fputwc(wchar_t wc, register FILE *stream) { wint_t retval; @@ -39,4 +37,6 @@ wint_t fputwc(wchar_t wc, register FILE *stream) return retval; } +weak_alias(fputwc,putwc); + #endif |