diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-09-22 00:43:18 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-09-22 00:43:18 +0000 |
commit | f8d5244380826053b8c75b3c302d39bdd1f9a121 (patch) | |
tree | 3c9d81358dce8e98a9b85ab840f0c657db7b4c17 /libc/stdio/fputwc.c | |
parent | 3ae4f469bfd1fd10fc3e148f75cb9ba4eff9ecdb (diff) |
weaks moved after the related function so gcc4 won't warn
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 |