summaryrefslogtreecommitdiff
path: root/libc/stdio/fputws.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 00:38:38 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 00:38:38 +0000
commitd482ef60da96645599b808bb74fe014e1ab4671e (patch)
treecf7028139dad0bcca533c61f5a3fbbcec60696ea /libc/stdio/fputws.c
parent59bf5cbe99873625ce3d5a9b984e9b98e659eefa (diff)
Get rid of warnings, use internals, create new hidden versions
Diffstat (limited to 'libc/stdio/fputws.c')
-rw-r--r--libc/stdio/fputws.c10
1 files changed, 6 insertions, 4 deletions
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