summaryrefslogtreecommitdiff
path: root/libc/stdio/fflush.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-13 21:30:04 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-13 21:30:04 +0000
commit1dd571b7a1719bfe5f4b42571d95fe614510c602 (patch)
tree13f8465b598b059b657fa62d569a4384bfcc86e7 /libc/stdio/fflush.c
parent77e41221589ef8832845fd8c791ebc91250df8f1 (diff)
Hidden fflush, adapt fopen to hack in libc-internal.h
Diffstat (limited to 'libc/stdio/fflush.c')
-rw-r--r--libc/stdio/fflush.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/stdio/fflush.c b/libc/stdio/fflush.c
index b4226d0f1..0a74afe3f 100644
--- a/libc/stdio/fflush.c
+++ b/libc/stdio/fflush.c
@@ -126,14 +126,15 @@ int attribute_hidden __fflush_unlocked(register FILE *stream)
#endif /* __STDIO_BUFFERS */
}
-weak_alias(__fflush_unlocked,fflush_unlocked);
+weak_alias(__fflush_unlocked,fflush_unlocked)
#ifndef __UCLIBC_HAS_THREADS__
-weak_alias(__fflush_unlocked,fflush);
+hidden_strong_alias(__fflush_unlocked,__fflush)
+weak_alias(__fflush_unlocked,fflush)
#endif
#elif defined __UCLIBC_HAS_THREADS__
-int fflush(register FILE *stream)
+int attribute_hidden __fflush(register FILE *stream)
{
int retval;
__STDIO_AUTO_THREADLOCK_VAR;
@@ -155,5 +156,6 @@ int fflush(register FILE *stream)
return retval;
}
+strong_alias(__fflush,fflush)
#endif