summaryrefslogtreecommitdiff
path: root/libc/stdio/fwrite.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-10 00:20:35 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-10 00:20:35 +0000
commitf445c58e7015240d1e68aa3d7c2cf50a298e2c2a (patch)
tree8f04b68833d8339d0ba252b5a2ec00752d0129d4 /libc/stdio/fwrite.c
parent73130cae6071638370bf04d965f1e076c9710548 (diff)
Do hidden fread/fwrite/fclose
Diffstat (limited to 'libc/stdio/fwrite.c')
-rw-r--r--libc/stdio/fwrite.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/stdio/fwrite.c b/libc/stdio/fwrite.c
index 50af8f7a5..abe24fbb7 100644
--- a/libc/stdio/fwrite.c
+++ b/libc/stdio/fwrite.c
@@ -34,14 +34,15 @@ size_t attribute_hidden __fwrite_unlocked(const void * __restrict ptr, size_t si
return 0;
}
-weak_alias(__fwrite_unlocked,fwrite_unlocked);
+weak_alias(__fwrite_unlocked,fwrite_unlocked)
#ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fwrite_unlocked,fwrite);
+hidden_strong_alias(__fwrite_unlocked,__fwrite)
+weak_alias(__fwrite_unlocked,fwrite)
#endif
#elif defined __UCLIBC_HAS_THREADS__
-size_t fwrite(const void * __restrict ptr, size_t size,
+size_t attribute_hidden __fwrite(const void * __restrict ptr, size_t size,
size_t nmemb, register FILE * __restrict stream)
{
size_t retval;
@@ -55,5 +56,6 @@ size_t fwrite(const void * __restrict ptr, size_t size,
return retval;
}
+strong_alias(__fwrite,fwrite)
#endif