diff options
Diffstat (limited to 'libc/stdio/remove.c')
-rw-r--r-- | libc/stdio/remove.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libc/stdio/remove.c b/libc/stdio/remove.c index 2d4fedcc1..ad9974dff 100644 --- a/libc/stdio/remove.c +++ b/libc/stdio/remove.c @@ -5,21 +5,21 @@ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. */ -#define rmdir __rmdir -#define unlink __unlink - #include "_stdio.h" #include <unistd.h> #include <errno.h> +libc_hidden_proto(rmdir) +libc_hidden_proto(unlink) + /* SUSv3 states: * If path does not name a directory, remove(path) shall be equivalent * to unlink(path). If path names a directory, remove(path) shall be * equivalent to rmdir(path). */ -int attribute_hidden __remove(register const char *filename) +int remove(register const char *filename) { int saved_errno = errno; int rv; @@ -30,4 +30,5 @@ int attribute_hidden __remove(register const char *filename) } return rv; } -strong_alias(__remove,remove) +libc_hidden_proto(remove) +libc_hidden_def(remove) |