From f8703c6453b64fd74354a0851f6fb05795c31956 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 14 Nov 2005 22:57:45 +0000 Subject: Move to use attribute_hidden --- libc/string/generic/strtok_r.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libc/string/generic/strtok_r.c') diff --git a/libc/string/generic/strtok_r.c b/libc/string/generic/strtok_r.c index 15ca8b4ba..40d4e1a78 100644 --- a/libc/string/generic/strtok_r.c +++ b/libc/string/generic/strtok_r.c @@ -21,7 +21,6 @@ #include #undef strtok_r -#undef __strtok_r /* Parse S into tokens separated by characters in DELIM. If S is NULL, the saved pointer in SAVE_PTR is used as @@ -33,8 +32,7 @@ x = strtok_r(NULL, "=", &sp); // x = NULL // s = "abc\0-def\0" */ -char * -__strtok_r (s, delim, save_ptr) +char attribute_hidden *__strtok_r (s, delim, save_ptr) char *s; const char *delim; char **save_ptr; @@ -66,4 +64,5 @@ __strtok_r (s, delim, save_ptr) } return token; } -weak_alias (__strtok_r, strtok_r) + +strong_alias(__strtok_r, strtok_r) -- cgit v1.2.3