From d482ef60da96645599b808bb74fe014e1ab4671e Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 16 Dec 2005 00:38:38 +0000 Subject: Get rid of warnings, use internals, create new hidden versions --- libc/stdio/fputws.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libc/stdio/fputws.c') diff --git a/libc/stdio/fputws.c b/libc/stdio/fputws.c index e83cc9fcb..74919d6ea 100644 --- a/libc/stdio/fputws.c +++ b/libc/stdio/fputws.c @@ -9,9 +9,6 @@ #include "_stdio.h" -extern int __fputws_unlocked(const wchar_t *__restrict ws, - FILE *__restrict stream) attribute_hidden; - #ifdef __DO_UNLOCKED int attribute_hidden __fputws_unlocked(const wchar_t *__restrict ws, @@ -24,12 +21,16 @@ int attribute_hidden __fputws_unlocked(const wchar_t *__restrict ws, weak_alias(__fputws_unlocked,fputws_unlocked) #ifndef __UCLIBC_HAS_THREADS__ +hidden_strong_alias(__fputws_unlocked,__fputws) weak_alias(__fputws_unlocked,fputws) #endif #elif defined __UCLIBC_HAS_THREADS__ -int fputws(const wchar_t *__restrict ws, register FILE *__restrict stream) +extern int __fputws_unlocked(const wchar_t *__restrict ws, + FILE *__restrict stream) attribute_hidden; + +int attribute_hidden __fputws(const wchar_t *__restrict ws, register FILE *__restrict stream) { int retval; __STDIO_AUTO_THREADLOCK_VAR; @@ -42,5 +43,6 @@ int fputws(const wchar_t *__restrict ws, register FILE *__restrict stream) return retval; } +strong_alias(__fputws,fputws) #endif -- cgit v1.2.3